File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
modules/influxdb/src/main/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
33import org .influxdb .InfluxDB ;
44import org .influxdb .InfluxDBFactory ;
5- import org .testcontainers .containers .traits .LinkableContainer ;
65import org .testcontainers .containers .wait .strategy .Wait ;
76import org .testcontainers .containers .wait .strategy .WaitAllStrategy ;
87
8+ import java .util .Collections ;
9+ import java .util .Set ;
10+
911/**
10- * @link https://store.docker.com/images/influxdb
12+ * See <a href=" https://store.docker.com/images/influxdb">https://store.docker.com/images/influxdb</a>
1113 */
12- public class InfluxDBContainer <SELF extends InfluxDBContainer <SELF >> extends GenericContainer <SELF >
13- implements LinkableContainer {
14+ public class InfluxDBContainer <SELF extends InfluxDBContainer <SELF >> extends GenericContainer <SELF > {
1415
1516 public static final String VERSION = "1.4.3" ;
1617 public static final Integer INFLUXDB_PORT = 8086 ;
@@ -52,11 +53,10 @@ protected void configure() {
5253 }
5354
5455 @ Override
55- protected Integer getLivenessCheckPort () {
56- return getMappedPort (INFLUXDB_PORT );
56+ public Set < Integer > getLivenessCheckPortNumbers () {
57+ return Collections . singleton ( getMappedPort (INFLUXDB_PORT ) );
5758 }
5859
59-
6060 /**
6161 * Set env variable `INFLUXDB_HTTP_AUTH_ENABLED`.
6262 *
You can’t perform that action at this time.
0 commit comments