Skip to content

Commit

Permalink
testcontainers#291 debug (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Feb 21, 2017
1 parent 0d218d3 commit 7cb48f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public class NamedPipeSocketClientProviderStrategy extends DockerClientProviderStrategy {

private static final String NAMED_PIPE_FILE_NAME = "\\\\.\\pipe\\docker_engine";
private static final String PING_TIMEOUT_DEFAULT = "10";
private static final int PING_TIMEOUT_DEFAULT = 5;
private static final String PING_TIMEOUT_PROPERTY_NAME = "testcontainers.namedpipesocketprovider.timeout";

@Override
Expand Down Expand Up @@ -59,7 +59,7 @@ protected DockerClientConfig tryConfiguration(String dockerHost) {
.build();
client = getClientForConfig(config);

final int timeout = Integer.parseInt(System.getProperty(PING_TIMEOUT_PROPERTY_NAME, PING_TIMEOUT_DEFAULT));
final int timeout = Integer.getInteger(PING_TIMEOUT_PROPERTY_NAME, PING_TIMEOUT_DEFAULT);
ping(client, timeout);

return config;
Expand Down
3 changes: 2 additions & 1 deletion core/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<appender-ref ref="STDOUT"/>
</root>

<logger name="org.testcontainers" level="DEBUG"/>
<logger name="org.apache.http" level="WARN"/>
<logger name="com.github.dockerjava" level="WARN"/>
<logger name="org.zeroturnaround.exec" level="WARN"/>
Expand All @@ -26,4 +27,4 @@
<Marker>PROFILER</Marker>
<OnMatch>DENY</OnMatch>
</turboFilter>
</configuration>
</configuration>

0 comments on commit 7cb48f9

Please sign in to comment.