Skip to content
代码片段 群组 项目
未验证 提交 95986a8f 编辑于 作者: leah's avatar leah 提交者: GitHub
浏览文件

MINOR: Fix KStreamKTableJoinTest and StreamTaskTest (#9357)

Reviewers: Matthias J. Sax <matthias@confluent.io>, Guozhang Wang <wangguoz@gmail.com>
上级 a15387f3
No related branches found
No related tags found
无相关合并请求
......@@ -208,6 +208,9 @@
<suppress checks="MethodLength"
files="KStreamSlidingWindowAggregateTest.java"/>
<suppress checks="ClassFanOutComplexity"
files="StreamTaskTest.java"/>
<!-- Streams test-utils -->
<suppress checks="ClassFanOutComplexity"
files="TopologyTestDriver.java"/>
......
......@@ -255,7 +255,7 @@ public class KStreamKTableJoinTest {
}
assertThat(
appender.getMessages(),
hasItem("Skipping record due to null key or value. key=[null] value=[A] topic=[streamTopic] partition=[0] "
hasItem("Skipping record due to null join key or value. key=[null] value=[A] topic=[streamTopic] partition=[0] "
+ "offset=[0]"));
}
}
......@@ -282,7 +282,7 @@ public class KStreamKTableJoinTest {
assertThat(
appender.getMessages(),
hasItem("Skipping record due to null key or value. key=[1] value=[null] topic=[streamTopic] partition=[0] "
hasItem("Skipping record due to null join key or value. key=[1] value=[null] topic=[streamTopic] partition=[0] "
+ "offset=[0]")
);
}
......
......@@ -2050,22 +2050,22 @@ public class StreamTaskTest {
final ProcessorTopology topology = withSources(asList(), mkMap());
final TopologyException exception = assertThrows(
TopologyException.class,
() -> new StreamTask(
taskId,
partitions,
topology,
consumer,
createConfig(false, "100"),
metrics,
stateDirectory,
cache,
time,
stateManager,
recordCollector,
context
)
);
TopologyException.class,
() -> new StreamTask(
taskId,
partitions,
topology,
consumer,
createConfig(false, "100"),
metrics,
stateDirectory,
cache,
time,
stateManager,
recordCollector,
context
)
);
assertThat(exception.getMessage(), equalTo("Invalid topology: " +
"Topic is unkown to the topology. This may happen if different KafkaStreams instances of the same " +
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册