mjsax commented on a change in pull request #9720:
URL: https://github.com/apache/kafka/pull/9720#discussion_r547568019



##########
File path: 
streams/src/test/java/org/apache/kafka/streams/integration/SuppressionIntegrationTest.java
##########
@@ -526,6 +526,6 @@ private static void produceSynchronously(final String 
topic, final List<KeyValue
 
     private static void verifyErrorShutdown(final KafkaStreams driver) throws 
InterruptedException {
         waitForCondition(() -> !driver.state().isRunningOrRebalancing(), 
DEFAULT_TIMEOUT, "Streams didn't shut down.");
-        assertThat(driver.state(), is(KafkaStreams.State.PENDING_SHUTDOWN));
+        waitForCondition(() -> driver.state() == KafkaStreams.State.ERROR, 
"finish shutdown");

Review comment:
       Nit: the error message is weird -> `Streams didn't transit to ERROR 
state`.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to