From 599b4005c59c9eca6621ef22805fdb2d03f034f5 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Tue, 21 Oct 2025 19:41:32 -0400 Subject: [PATCH] Better debugging message --- tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs b/tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs index dab176cdc5..bcff8cf8e3 100644 --- a/tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs +++ b/tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs @@ -10,6 +10,8 @@ using Moq; using Newtonsoft.Json; +using Remora.Discord.Rest.Extensions; + using System; using System.Collections.Generic; using System.Globalization; @@ -1229,7 +1231,7 @@ namespace Tgstation.Server.Tests.Live.Instance Assert.AreEqual("https://github.com/Cyberboss", embedsResponse.Embed.Author.Url); Assert.IsTrue(DateTimeOffset.TryParse(embedsResponse.Embed.Timestamp, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal, out var timestamp)); var timestampCheck = startTime < timestamp && endTime > timestamp; - Assert.IsTrue(timestampCheck); + Assert.IsTrue(timestampCheck, $"Expected between {startTime.ToString("O")} and {endTime.ToString("O")}, got {timestamp.ToString("O")}"); Assert.AreEqual("https://github.com/tgstation/tgstation-server", embedsResponse.Embed.Url); Assert.AreEqual(3, embedsResponse.Embed.Fields?.Count); Assert.AreEqual("field1", embedsResponse.Embed.Fields.ElementAt(0).Name);