cadonna commented on a change in pull request #9582: URL: https://github.com/apache/kafka/pull/9582#discussion_r522782299
########## File path: streams/src/test/java/org/apache/kafka/streams/StreamsBuilderTest.java ########## @@ -895,6 +899,103 @@ public void shouldUseSpecifiedNameForAggregateOperationGivenTable() { STREAM_OPERATION_NAME); } + @Test + public void shouldAllowStreamsFromSameTopic() { + builder.stream("topic"); + builder.stream("topic"); + try { + builder.build(); + } catch (final TopologyException topologyException) { + fail("TopologyException not expected"); + } Review comment: Could you please extract this part in its own method since we use it also in a couple of other tests? ---------------------------------------------------------------- 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: us...@infra.apache.org