Polish
This commit is contained in:
@@ -24,6 +24,7 @@ import org.junit.rules.TestRule;
|
||||
import org.junit.runner.Description;
|
||||
import org.junit.runners.model.Statement;
|
||||
import org.testcontainers.DockerClientFactory;
|
||||
import org.testcontainers.containers.FailureDetectingExternalResource;
|
||||
import org.testcontainers.containers.GenericContainer;
|
||||
|
||||
/**
|
||||
@@ -68,7 +69,8 @@ class Container implements TestRule {
|
||||
return new SkipStatement();
|
||||
}
|
||||
this.container = this.containerFactory.get();
|
||||
return this.container.apply(base, description);
|
||||
return ((FailureDetectingExternalResource) this.container).apply(base,
|
||||
description);
|
||||
}
|
||||
|
||||
public int getMappedPort() {
|
||||
|
||||
Reference in New Issue
Block a user