We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc7cb5c commit fe49650Copy full SHA for fe49650
tests/CommunityToolkit.Datasync.Client.Test/Threading/QueueHandler_Tests.cs
@@ -47,7 +47,9 @@ public async Task QueueHandler_WithThreads_Enqueue(int nThreads)
47
accId.Should().HaveCount(nElements);
48
accTh.Should().HaveCount(nElements);
49
accTh.AsEnumerable().Distinct().Should().HaveCount(nThreads);
50
- (endTime - startTime).TotalSeconds.Should().BeLessThanOrEqualTo((nElements / nThreads) + 2);
+ // This just makes sure that the amount of time is "of the right order of magnitude" since CI systems
51
+ // are notoriously bad at correct timings. We just don't want it to be 10x the expected time.
52
+ (endTime - startTime).TotalSeconds.Should().BeLessThanOrEqualTo((nElements / nThreads) + 5);
53
}
54
55
[Theory(Timeout = 30000)]
0 commit comments