adamdebreceni commented on a change in pull request #1083:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1083#discussion_r643819874
##########
File path: libminifi/test/rocksdb-tests/RocksDBStreamTests.cpp
##########
@@ -45,7 +45,9 @@ TEST_CASE_METHOD(RocksDBStreamTest, "Verify simple
operation") {
std::string content = "banana";
minifi::io::RocksDbStream outStream("one", gsl::make_not_null(db.get()),
true);
outStream.write(content);
- REQUIRE(outStream.write(content) > 0);
+ const auto second_write_result = outStream.write(content);
+ REQUIRE(second_write_result > 0);
+ REQUIRE(!minifi::io::isError(second_write_result));
Review comment:
IMO `!` is harder to spot than `REQUIRE_FALSE`, the catch2 library
mentions something about not being able to decompose "complex" expressions but
I don't think that applies here, ultimately it's fine either way by me
--
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]