Skip to content
Open
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
4 changes: 3 additions & 1 deletion src/Hazelcast.Net.Tests/Clustering/ConnectMembersTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ await AssertEx.SucceedsEventually(() =>

// each member retried twice = twice the 1s delay = 2s
// we should not have completed faster than that, even so the code runs fully in-memory
Assert.That(elapsed, Is.GreaterThanOrEqualTo(TimeSpan.FromSeconds(2)));
// allow a small margin of error since catching the delayed item with 0 delay is not exact, and implementation has already
// 10ms margin.
Assert.That(elapsed, Is.GreaterThanOrEqualTo(TimeSpan.FromSeconds(2) - TimeSpan.FromMilliseconds(15)));
HConsole.WriteLine(this, $"Elapsed: {elapsed}");

Assert.That(queue.Count, Is.EqualTo(0));
Expand Down
Loading