dubee commented on a change in pull request #306: Update Tests to Wait for Producer to Finish URL: https://github.com/apache/incubator-openwhisk-package-kafka/pull/306#discussion_r232803010
########## File path: tests/src/test/scala/system/packages/MessageHubFeedTests.scala ########## @@ -197,9 +198,9 @@ class MessageHubFeedTests val verificationName = s"trigger-$currentTime" wsk.trigger.get(verificationName, NOT_FOUND) - println("Producing an oversized message") - produceMessage(topic, verificationName, generateMessage(s"${currentTime}", testPayloadSize)) + // The producer will generate an error as the payload size is too large for the MessageHub brokers + a[ExecutionException] should be thrownBy produceMessage(topic, verificationName, generateMessage(s"${currentTime}", testPayloadSize)) Review comment: This error was previously undetected as `producer.flush` was never called. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services