File tree 2 files changed +2
-4
lines changed
junit-jupiter-engine/src/test/java/org/junit/jupiter
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 28
28
import java .util .concurrent .atomic .AtomicBoolean ;
29
29
import java .util .concurrent .atomic .AtomicReference ;
30
30
31
- import org .junit .jupiter .api .condition .OS ;
32
31
import org .junit .jupiter .api .function .Executable ;
33
32
import org .junit .platform .commons .util .ExceptionUtils ;
34
33
import org .opentest4j .AssertionFailedError ;
40
39
*/
41
40
class AssertTimeoutAssertionsTests {
42
41
43
- private static final Duration PREEMPTIVE_TIMEOUT = ofMillis (OS . current () == WINDOWS ? 1000 : 100 );
42
+ private static final Duration PREEMPTIVE_TIMEOUT = ofMillis (WINDOWS . isCurrentOs () ? 1000 : 100 );
44
43
45
44
private static ThreadLocal <AtomicBoolean > changed = ThreadLocal .withInitial (() -> new AtomicBoolean (false ));
46
45
Original file line number Diff line number Diff line change 21
21
import org .junit .jupiter .api .DisplayName ;
22
22
import org .junit .jupiter .api .Test ;
23
23
import org .junit .jupiter .api .Timeout .ThreadMode ;
24
- import org .junit .jupiter .api .condition .OS ;
25
24
import org .junit .jupiter .api .extension .ExtensionContext ;
26
25
import org .junit .jupiter .api .extension .InvocationInterceptor .Invocation ;
27
26
import org .junit .jupiter .engine .execution .ExtensionValuesStore ;
34
33
@ DisplayName ("SeparateThreadTimeoutInvocation" )
35
34
class SeparateThreadTimeoutInvocationTest {
36
35
37
- private static final long PREEMPTIVE_TIMEOUT_MILLIS = OS . current () == WINDOWS ? 1000 : 100 ;
36
+ private static final long PREEMPTIVE_TIMEOUT_MILLIS = WINDOWS . isCurrentOs () ? 1000 : 100 ;
38
37
39
38
@ Test
40
39
@ DisplayName ("throws timeout exception when timeout duration is exceeded" )
You can’t perform that action at this time.
0 commit comments