Skip to content

Commit

Permalink
[SPARK-25615] Improve the test runtime of KafkaSinkSuite: streaming -…
Browse files Browse the repository at this point in the history
… write to non-existing topic
  • Loading branch information
dilipbiswal committed Oct 8, 2018
1 parent ebd899b commit 6a36250
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ class KafkaSinkSuite extends StreamTest with SharedSQLContext with KafkaTest {
var ex: Exception = null
try {
ex = intercept[StreamingQueryException] {
writer = createKafkaWriter(input.toDF(), withTopic = Some(topic))()
writer = createKafkaWriter(input.toDF(),
withTopic = Some(topic),
withOptions = Map("kafka.max.block.ms" -> "10000"))()
input.addData("1", "2", "3", "4", "5")
writer.processAllAvailable()
}
Expand Down

0 comments on commit 6a36250

Please sign in to comment.