Skip to content

Commit f6894da

Browse files
authored
Give more time to structured concurrency tests (#9143)
1 parent 956f570 commit f6894da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dd-java-agent/instrumentation/java-concurrent/java-concurrent-21/src/previewTest/groovy/StructuredConcurrencyTest.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class StructuredConcurrencyTest extends AgentTestRunner {
2626
return true
2727
}
2828
})
29-
taskScope.joinUntil(now() + 1) // Wait for a second at maximum
29+
taskScope.joinUntil(now() + 10) // Wait for 10 seconds at maximum
3030
result = task.get()
3131
}
3232
taskScope.close()
@@ -73,7 +73,7 @@ class StructuredConcurrencyTest extends AgentTestRunner {
7373
taskScope.fork {
7474
runnableUnderTrace("child3") {}
7575
}
76-
taskScope.joinUntil(now() + 2) // Wait for two seconds at maximum
76+
taskScope.joinUntil(now() + 10) // Wait for 10 seconds at maximum
7777
}
7878
taskScope.close()
7979

@@ -132,7 +132,7 @@ class StructuredConcurrencyTest extends AgentTestRunner {
132132
taskScope.fork {
133133
runnableUnderTrace("child2") {}
134134
}
135-
taskScope.joinUntil(now() + 2) // Wait for two seconds at maximum
135+
taskScope.joinUntil(now() + 10) // Wait for 10 seconds at maximum
136136
}
137137
taskScope.close()
138138

0 commit comments

Comments
 (0)