Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Fix some tests after dotnet/coreclr#14864 (#25144)
Browse files Browse the repository at this point in the history
  • Loading branch information
kouvel authored and stephentoub committed Nov 9, 2017
1 parent 8ef2b32 commit 6e39d49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/System.Threading.ThreadPool/tests/ThreadPoolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6e39d49

Please sign in to comment.