Skip to content

Commit

Permalink
tune tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Jan 10, 2024
1 parent ecf56fc commit 24a6947
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ public void TestWaitInAQueueForAnIdleSession()
CollectionAssert.AreEquivalent(new[] { "A", "B" }, firstConnectedEventsGroup.Select(e => e.ThreadName));
var lastConnectingEventsGroup = connectedEvents.GetRange(2, 2);
CollectionAssert.AreEquivalent(new[] { "C", "D" }, lastConnectingEventsGroup.Select(e => e.ThreadName));
Assert.LessOrEqual(firstConnectedEventsGroup[0].Duration, 1200);
Assert.LessOrEqual(firstConnectedEventsGroup[1].Duration, 1200);
Assert.LessOrEqual(firstConnectedEventsGroup[0].Duration, 1300);
Assert.LessOrEqual(firstConnectedEventsGroup[1].Duration, 1300);
// first to wait from C and D should first to connect, because we won't create a new session, we just reuse sessions returned by A and B threads
Assert.AreEqual(waitingEvents[0].ThreadName, lastConnectingEventsGroup[0].ThreadName);
Assert.AreEqual(waitingEvents[1].ThreadName, lastConnectingEventsGroup[1].ThreadName);
Expand Down

0 comments on commit 24a6947

Please sign in to comment.