Skip to content

Commit f50fa51

Browse files
use chronounit, mirroring gradle smoke test configuration
1 parent 6d40285 commit f50fa51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dd-smoke-tests/maven/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import java.time.Duration
2+
import java.time.temporal.ChronoUnit
23

34
plugins {
45
id "com.gradleup.shadow"
@@ -25,7 +26,7 @@ tasks.withType(Test).configureEach {
2526

2627
// overriding the default timeout set in configure_tests.gradle, as Maven smoke
2728
// tests might run for a longer duration
28-
timeout = Duration.ofMinutes(20)
29+
timeout = Duration.of(20, ChronoUnit.MINUTES)
2930

3031
if (project.hasProperty("mavenRepositoryProxy")) {
3132
// propagate proxy URL to tests, to then propagate it to nested Gradle builds

0 commit comments

Comments
 (0)