Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CRogers committed Oct 4, 2017
1 parent 460f307 commit aafe665
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import com.palantir.docker.compose.connection.DockerPort;
import com.palantir.docker.compose.connection.Ports;
import com.palantir.docker.compose.connection.waiting.SuccessOrFailure;
import com.palantir.docker.compose.execution.DockerCompose;
import java.io.IOException;
import java.util.Arrays;
Expand Down Expand Up @@ -52,6 +53,7 @@ public DockerPort unavailableService(String service, String ip, int externalPort
public DockerPort availableHttpService(String service, String ip, int externalPortNumber, int internalPortNumber) throws Exception {
DockerPort port = availableService(service, ip, externalPortNumber, internalPortNumber);
doReturn(true).when(port).isHttpResponding(any(), eq(false));
doReturn(SuccessOrFailure.success()).when(port).isHttpRespondingSuccessfully(any(), eq(false));
return port;
}

Expand Down

0 comments on commit aafe665

Please sign in to comment.