You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// close conn3, so we can see if too many connectors get pruned
238
+
awaitconn3.CloseAsync();
239
+
240
+
// wait for last sample + a bit more time for reliability
241
+
Thread.Sleep(1500);
242
+
243
+
// ConnectionIdleLifetime reached
244
+
// - conn1 should have been closed due to max lifetime (but this should count as pruning)
245
+
// - conn2 or conn3 should have been closed due to idle pruning
246
+
// - conn3 or conn2 should remain
247
+
AssertPoolState(dataSource,open:1,idle:1);
248
+
}
249
+
206
250
[Test,Description("Makes sure that when a waiting async open is is given a connection, the continuation is executed in the TP rather than on the closing thread")]
0 commit comments