Skip to content

Commit

Permalink
Add a verification removed in dotnet#25144
Browse files Browse the repository at this point in the history
  • Loading branch information
kouvel committed Nov 9, 2017
1 parent ee7cbad commit 48e158e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/System.Threading.ThreadPool/tests/ThreadPoolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public static void SetMinMaxThreadsTest_ChangedInDotNetCore()
try
{
Assert.True(ThreadPool.SetMinThreads(0, 0));
VerifyMinThreads(1, 1);
Assert.False(ThreadPool.SetMaxThreads(0, 1));
Assert.False(ThreadPool.SetMaxThreads(1, 0));
VerifyMaxThreads(maxw, maxc);
Expand Down Expand Up @@ -194,6 +195,7 @@ private static void VerifyMaxThreads(int expectedMaxw, int expectedMaxc)
}

[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Triggers an assertion failure.")]
private static void SetMinThreadsTo0Test()
{
int minw, minc, maxw, maxc;
Expand Down

0 comments on commit 48e158e

Please sign in to comment.