mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 04:57:17 +01:00
Add some buffer time to allow subscriptions to catch up
This commit is contained in:
@@ -50,7 +50,13 @@ namespace Tgstation.Server.Tests.Live
|
||||
|
||||
Assert.IsFalse(observer.Completed);
|
||||
Assert.AreEqual(0U, observer.ErrorCount);
|
||||
Assert.AreEqual(new PlatformIdentifier().IsWindows ? 108U : 107U, observer.ResultCount); // sys user
|
||||
|
||||
var expected = new PlatformIdentifier().IsWindows ? 108U : 107U;
|
||||
// wait up to 10s
|
||||
for (var i = 0; i < 10 && observer.ResultCount < expected; ++i)
|
||||
await Task.Delay(TimeSpan.FromSeconds(1), cancellationToken);
|
||||
|
||||
Assert.AreEqual(, observer.ResultCount); // sys user
|
||||
observer.LastValue.EnsureNoErrors();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user