sijie commented on a change in pull request #5019: Fix code inspection issues
in pulsar broker tests
URL: https://github.com/apache/pulsar/pull/5019#discussion_r317417057
##########
File path:
pulsar-broker/src/test/java/org/apache/pulsar/PulsarBrokerStarterTest.java
##########
@@ -44,7 +44,7 @@
private File createValidBrokerConfigFile() throws FileNotFoundException {
File testConfigFile = new File("tmp." + System.currentTimeMillis() +
".properties");
if (testConfigFile.exists()) {
- testConfigFile.delete();
+ assert testConfigFile.delete();
Review comment:
don't use `assert`. please use testng assertions.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services