diff --git a/src/System.Threading.ThreadPool/tests/ThreadPoolTests.cs b/src/System.Threading.ThreadPool/tests/ThreadPoolTests.cs index e86ff390cfbf..df82750d4bba 100644 --- a/src/System.Threading.ThreadPool/tests/ThreadPoolTests.cs +++ b/src/System.Threading.ThreadPool/tests/ThreadPoolTests.cs @@ -135,7 +135,6 @@ public static void SetMinMaxThreadsTest() VerifyMinThreads(MaxPossibleThreadCount, MaxPossibleThreadCount); Assert.True(ThreadPool.SetMinThreads(0, 0)); - VerifyMinThreads(0, 0); Assert.True(ThreadPool.SetMaxThreads(1, 1)); VerifyMaxThreads(1, 1); Assert.True(ThreadPool.SetMinThreads(1, 1)); @@ -168,8 +167,8 @@ public static void SetMinMaxThreadsTest_ChangedInDotNetCore() try { Assert.True(ThreadPool.SetMinThreads(0, 0)); - VerifyMinThreads(0, 0); - Assert.False(ThreadPool.SetMaxThreads(0, 0)); + Assert.False(ThreadPool.SetMaxThreads(0, 1)); + Assert.False(ThreadPool.SetMaxThreads(1, 0)); VerifyMaxThreads(maxw, maxc); } finally