Skip to content

Commit 89a3d73

Browse files
committed
Fix JavaAPISuite.testQueueStream
1 parent cc40fd7 commit 89a3d73

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

streaming/src/test/java/org/apache/spark/streaming/JavaAPISuite.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,14 @@ private void testReduceByWindow(boolean withInverse) {
364364
@SuppressWarnings("unchecked")
365365
@Test
366366
public void testQueueStream() {
367+
ssc.stop();
368+
// Create a new JavaStreamingContext without checkpointing
369+
SparkConf conf = new SparkConf()
370+
.setMaster("local[2]")
371+
.setAppName("test")
372+
.set("spark.streaming.clock", "org.apache.spark.util.ManualClock");
373+
ssc = new JavaStreamingContext(conf, new Duration(1000));
374+
367375
List<List<Integer>> expected = Arrays.asList(
368376
Arrays.asList(1,2,3),
369377
Arrays.asList(4,5,6),

0 commit comments

Comments
 (0)