From f403a7529ddb5380220811fd95a7e09dcd8351b0 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 12 May 2020 19:28:22 -0400 Subject: [PATCH] Fix tests --- tests/Tgstation.Server.Tests/IntegrationTest.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Tgstation.Server.Tests/IntegrationTest.cs b/tests/Tgstation.Server.Tests/IntegrationTest.cs index 672f963006..3fbd79f60f 100644 --- a/tests/Tgstation.Server.Tests/IntegrationTest.cs +++ b/tests/Tgstation.Server.Tests/IntegrationTest.cs @@ -249,14 +249,15 @@ namespace Tgstation.Server.Tests using (var adminClient = await CreateAdminClient()) { var instanceClient = adminClient.Instances.CreateClient(instance); - var dd = await instanceClient.DreamDaemon.Read(cancellationToken); + var dd = instanceClient.DreamDaemon.Read(cancellationToken); - await new RepositoryTest(instanceClient.Repository, instanceClient.Jobs).RunPostTest(cancellationToken); + var repoTest = new RepositoryTest(instanceClient.Repository, instanceClient.Jobs).RunPostTest(cancellationToken); await new ChatTest(instanceClient.ChatBots, adminClient.Instances, instance).RunPostTest(cancellationToken); + await repoTest; await new InstanceManagerTest(adminClient.Instances, adminClient.Users, server.Directory).RunPostTest(cancellationToken); - Assert.IsTrue(dd.Running.Value); + Assert.IsTrue((await dd).Running.Value); } } catch (Exception ex)