MINOR: improve error message for Streams test
Author: Matthias J. Sax
Reviewers: Bill Bejeck Guozhang Wang
Closes from mjsax/minor-imporve-error-message
@@ -402,7 +402,8 @@ public class KafkaStreamsTest {
assertNotNull(threadMetadata);
assertEquals(2, threadMetadata.size());
for (ThreadMetadata metadata : threadMetadata) {
- assertTrue(Utils.mkList("RUNNING", "CREATED").contains(metadata.threadState()));
+ assertTrue("#threadState() was: " + metadata.threadState() + "; expected either RUNNING or CREATED",
+ Utils.mkList("RUNNING", "CREATED").contains(metadata.threadState()));
assertEquals(0, metadata.standbyTasks().size());
assertEquals(0, metadata.activeTasks().size());
}
