From 24a69476825deb4a48eefe52144be7aa65f50f37 Mon Sep 17 00:00:00 2001 From: Krzysztof Nozderko Date: Wed, 10 Jan 2024 13:14:11 +0100 Subject: [PATCH] tune tests --- .../IntegrationTests/ConnectionMultiplePoolsIT.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/ConnectionMultiplePoolsIT.cs b/Snowflake.Data.Tests/IntegrationTests/ConnectionMultiplePoolsIT.cs index f9ccd5bcb..d486bbc2e 100644 --- a/Snowflake.Data.Tests/IntegrationTests/ConnectionMultiplePoolsIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/ConnectionMultiplePoolsIT.cs @@ -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);