Skip to content

Commit

Permalink
Fix some tests after dotnet/coreclr#14864
Browse files Browse the repository at this point in the history
  • Loading branch information
kouvel committed Nov 9, 2017
1 parent 5617d39 commit 1f10e69
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 1f10e69

Please sign in to comment.