Skip to content

Commit

Permalink
[type:feat]add kafka logging e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakiuncle committed Jan 19, 2025
1 parent 642cdf3 commit 88c0c20
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ private ShenYuScenarioSpec testKafkaHello() {
StringDeserializer.class.getName());
props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG,
StringDeserializer.class.getName());
props.put(ConsumerConfig.GROUP_ID_CONFIG, "my-consumer-group");
props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "shenyu-kafka:9092");
KafkaConsumer<String, String> consumer = new KafkaConsumer<>(props);
consumer.subscribe(Arrays.asList(TOPIC));
Expand All @@ -127,7 +128,7 @@ private ShenYuScenarioSpec testKafkaHello() {
});
}
Assertions.assertTrue(isLog.get());
} catch (Exception e) {
} catch (InterruptedException e) {
LOG.info("isLog.get():{}", isLog.get());
LOG.error("error", e);
throw new RuntimeException(e);
Expand Down

0 comments on commit 88c0c20

Please sign in to comment.