Skip to content

Commit 9ea5a40

Browse files
committed
improve naming
1 parent 99cf882 commit 9ea5a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/EncryptionTest.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static std::vector<std::string> decryptValue(const char* data, size_t length,
7272
return values;
7373
}
7474

75-
static void testDecryption(Client& client, const std::string& topic, bool decryptionSucceed,
75+
static void testDecryption(Client& client, const std::string& topic, bool withDecryption,
7676
int numMessageReceived) {
7777
ProducerConfiguration producerConf;
7878
producerConf.setCompressionType(CompressionLZ4);
@@ -103,7 +103,7 @@ static void testDecryption(Client& client, const std::string& topic, bool decryp
103103

104104
ConsumerConfiguration consumerConf;
105105
consumerConf.setSubscriptionInitialPosition(InitialPositionEarliest);
106-
if (decryptionSucceed) {
106+
if (withDecryption) {
107107
consumerConf.setCryptoKeyReader(getDefaultCryptoKeyReader());
108108
} else {
109109
consumerConf.setCryptoFailureAction(ConsumerCryptoFailureAction::CONSUME);

0 commit comments

Comments
 (0)