Skip to content

Commit fc505c1

Browse files
authored
Fix restart test (docker-java#2375)
1 parent 996f206 commit fc505c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-java/src/test/java/com/github/dockerjava/cmd/RestartContainerCmdImplIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void restartContainerWithSignal() throws Exception {
6060
.build();
6161
try (DockerClient dockerClient = createDockerClient(dockerClientConfig)) {
6262
String expectedUserSignal = "10";
63-
String initialCommandWithTrap = "trap 'echo \"exit trapped\"' %s; sleep 9999;";
63+
String initialCommandWithTrap = "trap 'echo \"exit trapped\"' %s; while :; do sleep 1; done";
6464
final String containerId = dockerClient
6565
.createContainerCmd(DEFAULT_IMAGE)
6666
.withCmd(

0 commit comments

Comments
 (0)