Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public async Task QueueHandler_WithThreads_Enqueue(int nThreads)
accId.Should().HaveCount(nElements);
accTh.Should().HaveCount(nElements);
accTh.AsEnumerable().Distinct().Should().HaveCount(nThreads);
(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
// are notoriously bad at correct timings. We just don't want it to be 10x the expected time.
(endTime - startTime).TotalSeconds.Should().BeLessThanOrEqualTo((nElements / nThreads) + 5);
}

[Theory(Timeout = 30000)]
Expand Down
Loading