Justine Olshan created KAFKA-18100: -------------------------------------- Summary: `Using` block suppresses all errors Key: KAFKA-18100 URL: https://issues.apache.org/jira/browse/KAFKA-18100 Project: Kafka Issue Type: Bug Reporter: Justine Olshan
[https://github.com/apache/kafka/pull/15881] changed our tests to utilize `using` blocks. But these blocks don't throw any errors, so if there is a failed assertion within the block, the test will still pass. We should either check the failure using a corresponding `match` block with Success(_) and Failure(e), use `using.resource`, or use try/finally blocks to clean up resources. See [https://www.scala-lang.org/api/3.0.2/scala/util/Using$.html] ** -- This message was sent by Atlassian Jira (v8.20.10#820010)