Skip to content

Commit bd5713b

Browse files
committed
Use Threa.Sleep instead of SpinWait
1 parent d193807 commit bd5713b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Data.SqlClient/tests/UnitTests/ConnectionPool/ChannelDbConnectionPoolTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ out DbConnectionInternal? failedConnection
346346
secondTaskReady.Wait();
347347

348348
// Use SpinWait to ensure both tasks are actually waiting
349-
SpinWait.SpinUntil(() => false, 100);
349+
Thread.Sleep(100);
350350

351351
// Start both requests
352352
startRequests.Set();

0 commit comments

Comments
 (0)