Skip to content

Commit

Permalink
Add RemoteExecutor check in TestWaitForExitValidation (#67397)
Browse files Browse the repository at this point in the history
#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
steveisok authored Mar 31, 2022
1 parent 6409642 commit 9b2e2a8
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 9b2e2a8

Please sign in to comment.