Skip to content

Commit 1aaf394

Browse files
sunny868DamonFool
authored andcommitted
8301736: jdk/incubator/concurrent/StructuredTaskScope/StructuredTaskScopeTest.java fail with -Xcomp
Reviewed-by: alanb
1 parent 9dad874 commit 1aaf394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/jdk/incubator/concurrent/StructuredTaskScope/StructuredTaskScopeTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -614,7 +614,7 @@ public void testJoinUntil4(ThreadFactory factory) throws Exception {
614614
public void testInterruptJoinUntil1(ThreadFactory factory) throws Exception {
615615
try (var scope = new StructuredTaskScope(null, factory)) {
616616
Future<String> future = scope.fork(() -> {
617-
Thread.sleep(Duration.ofMillis(100));
617+
Thread.sleep(Duration.ofSeconds(2));
618618
return "foo";
619619
});
620620

0 commit comments

Comments
 (0)