Skip to content

Commit a413cef

Browse files
committed
fix compilation error
1 parent 50c0cbe commit a413cef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/org/sourcelab/storm/spout/redis/example/ExampleLocalTopology.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import org.sourcelab.storm.spout.redis.failhandler.ExponentialBackoffFailureHandler;
1212
import org.sourcelab.storm.spout.redis.util.test.RedisTestContainer;
1313
import org.sourcelab.storm.spout.redis.util.test.RedisTestHelper;
14-
import org.testcontainers.containers.GenericContainer;
1514

1615
import java.io.BufferedReader;
1716
import java.io.IOException;
@@ -21,9 +20,11 @@
2120

2221
/**
2322
* Example topology using the RedisStreamSpout deployed against a LocalTopology cluster.
23+
*
24+
* NOTE: This required Docker to run.
2425
*/
2526
public class ExampleLocalTopology {
26-
private final GenericContainer redis;
27+
private final RedisTestContainer redis;
2728
private Thread producerThread;
2829

2930
/**
@@ -120,7 +121,7 @@ public void runExample(final boolean enableDebug) throws Exception {
120121
private void startProducerThread(final String streamKey) {
121122
final Runnable runnable = () -> {
122123
// Create helper
123-
final RedisTestHelper testHelper = new RedisTestHelper("redis://" + redis.getHost() + ":" + redis.getFirstMappedPort());
124+
final RedisTestHelper testHelper = redis.getRedisTestHelper();
124125

125126
long tupleCounter = 0L;
126127
do {

0 commit comments

Comments
 (0)