Skip to content

Commit 2ae5553

Browse files
authored
update k6 (#13756)
1 parent 349b994 commit 2ae5553

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benchmark-overhead/src/test/java/io/opentelemetry/OverheadTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.io.IOException;
2323
import java.nio.file.Files;
2424
import java.nio.file.Path;
25+
import java.time.Duration;
2526
import java.util.HashMap;
2627
import java.util.List;
2728
import java.util.Map;
@@ -145,11 +146,11 @@ private void doWarmupPhase(TestConfig testConfig, GenericContainer<?> petclinic)
145146
System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(testConfig.getWarmupSeconds());
146147
while (System.currentTimeMillis() < deadline) {
147148
GenericContainer<?> k6 =
148-
new GenericContainer<>(DockerImageName.parse("loadimpact/k6"))
149+
new GenericContainer<>(DockerImageName.parse("grafana/k6"))
149150
.withNetwork(NETWORK)
150151
.withCopyFileToContainer(MountableFile.forHostPath("./k6"), "/app")
151152
.withCommand("run", "-u", "5", "-i", "200", "/app/basic.js")
152-
.withStartupCheckStrategy(new OneShotStartupCheckStrategy());
153+
.withStartupCheckStrategy(new OneShotStartupCheckStrategy().withTimeout(Duration.ofMinutes(5)));
153154
k6.start();
154155
}
155156

0 commit comments

Comments
 (0)