From fcdd4a7afbaacbfd86fc5197abdd0cb7455c89cb Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 5 Jul 2020 14:40:23 -0400 Subject: [PATCH] Fix watchdog test --- tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs b/tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs index fe3c027774..f6a956b535 100644 --- a/tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs +++ b/tests/Tgstation.Server.Tests/Instance/WatchdogTest.cs @@ -221,6 +221,8 @@ namespace Tgstation.Server.Tests.Instance }, cancellationToken); + versionToInstall = versionToInstall.Semver(); + var initialStatus = await instanceClient.DreamDaemon.Read(cancellationToken); var startJob = await instanceClient.DreamDaemon.Start(cancellationToken).ConfigureAwait(false); @@ -243,7 +245,7 @@ namespace Tgstation.Server.Tests.Instance Assert.AreEqual(initialStatus.ActiveCompileJob.Id, daemonStatus.ActiveCompileJob.Id); var newerCompileJob = daemonStatus.StagedCompileJob; Assert.AreNotEqual(daemonStatus.ActiveCompileJob.ByondVersion, newerCompileJob.ByondVersion); - Assert.AreEqual(versionToInstall.Semver(), newerCompileJob.ByondVersion); + Assert.AreEqual(versionToInstall, newerCompileJob.ByondVersion); Assert.AreEqual(true, daemonStatus.SoftRestart);