Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Don't fail in callback
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed May 14, 2021
1 parent a3cae83 commit e293791
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;

import com.google.common.collect.Sets;
import io.streamnative.pulsar.handlers.kop.utils.KopTopic;
Expand Down Expand Up @@ -99,8 +98,7 @@ void testSimpleProduceAndConsume(String topic) {
log.info("Successfully send {} to {}-partition-{}",
key, recordMetadata.topic(), recordMetadata.partition());
} else {
log.error("Failed to send {}", key);
fail("Failed to send " + key);
log.error("Failed to send {}: {}", key, e.getMessage());
}
});
}
Expand Down

0 comments on commit e293791

Please sign in to comment.