Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dilipbiswal committed Oct 9, 2018
1 parent 6a36250 commit 16b23a8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,7 @@ class KafkaSinkSuite extends StreamTest with SharedSQLContext with KafkaTest {
var ex: Exception = null
try {
ex = intercept[StreamingQueryException] {
writer = createKafkaWriter(input.toDF(),
withTopic = Some(topic),
withOptions = Map("kafka.max.block.ms" -> "10000"))()
writer = createKafkaWriter(input.toDF(), withTopic = Some(topic))()
input.addData("1", "2", "3", "4", "5")
writer.processAllAvailable()
}
Expand Down Expand Up @@ -429,6 +427,7 @@ class KafkaSinkSuite extends StreamTest with SharedSQLContext with KafkaTest {
.format("kafka")
.option("checkpointLocation", checkpointDir.getCanonicalPath)
.option("kafka.bootstrap.servers", testUtils.brokerAddress)
.option("kafka.max.block.ms", "5000")
.queryName("kafkaStream")
withTopic.foreach(stream.option("topic", _))
withOutputMode.foreach(stream.outputMode(_))
Expand Down

0 comments on commit 16b23a8

Please sign in to comment.