Skip to content

Commit

Permalink
Add RemoteExecutor check in TestWaitForExitValidation
Browse files Browse the repository at this point in the history
dotnet#64860 added a TestWaitForExitValidation test that would fail when run on platforms that did not support RemoteExecutor.

This change adds a `ConditionalTheory` to make sure that doesn't happen.
  • Loading branch information
Steve Pfister committed Mar 31, 2022
1 parent a847ddf commit f386c65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void AssertNonZeroAllZeroDarwin(long value)
}
}

[Theory]
[ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
[InlineData(-2)]
[InlineData((long)int.MaxValue + 1)]
public void TestWaitForExitValidation(long milliseconds)
Expand Down

0 comments on commit f386c65

Please sign in to comment.