mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-28 15:40:56 +01:00
Tests are so fast now it's hard to catch this
This commit is contained in:
@@ -190,8 +190,19 @@ namespace Tgstation.Server.Tests.Live
|
||||
{
|
||||
NewVersion = TestUpdateVersion
|
||||
}, cancellationToken);
|
||||
var serverInfo = await adminClient.ServerInformation(cancellationToken);
|
||||
Assert.IsTrue(serverInfo.UpdateInProgress);
|
||||
|
||||
try
|
||||
{
|
||||
var serverInfoTask = adminClient.ServerInformation(cancellationToken);
|
||||
var completedTask = await Task.WhenAny(serverTask, serverInfoTask);
|
||||
if (completedTask == serverInfoTask)
|
||||
{
|
||||
var serverInfo = await serverInfoTask;
|
||||
Assert.IsTrue(serverInfo.UpdateInProgress);
|
||||
}
|
||||
}
|
||||
catch (ServiceUnavailableException) { }
|
||||
catch (HttpRequestException) { }
|
||||
}
|
||||
|
||||
//wait up to 3 minutes for the dl and install
|
||||
|
||||
Reference in New Issue
Block a user