diff --git a/tests/Tgstation.Server.Tests/Live/Instance/ConfigurationTest.cs b/tests/Tgstation.Server.Tests/Live/Instance/ConfigurationTest.cs index 53064c9b7c0..dac5b9b53c9 100644 --- a/tests/Tgstation.Server.Tests/Live/Instance/ConfigurationTest.cs +++ b/tests/Tgstation.Server.Tests/Live/Instance/ConfigurationTest.cs @@ -93,7 +93,7 @@ await configurationClient.Write(new ConfigurationFileRequest await configurationClient.CreateDirectory(staticDir, cancellationToken); } - public Task SetupDMApiTests(bool includingRoot, CancellationToken cancellationToken) + public ValueTask SetupDMApiTests(bool includingRoot, CancellationToken cancellationToken) { // just use an I/O manager here var ioManager = new DefaultIOManager(); @@ -110,7 +110,7 @@ public Task SetupDMApiTests(bool includingRoot, CancellationToken cancellationTo "../../../../DMAPI/LongRunning/long_running_test_rooted.dme", ioManager.ConcatPath(instance.Path, "Repository", "long_running_test_rooted.dme"), cancellationToken) - : Task.CompletedTask, + : ValueTask.CompletedTask, ioManager.CopyDirectory( Enumerable.Empty(), null, @@ -182,9 +182,8 @@ async Task SequencedApiTests(CancellationToken cancellationToken) } public Task RunPreWatchdog(CancellationToken cancellationToken) => Task.WhenAll( - SetupDMApiTests(false, cancellationToken), + SetupDMApiTests(false, cancellationToken).AsTask(), SequencedApiTests(cancellationToken), - SetupDMApiTests(cancellationToken), TestPregeneratedFilesExist(cancellationToken)); } }