mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-02 09:46:14 +00:00
test: Stricter unit test
Now that the previous commit fixed a unit test bug, make the test stricter, to prevent this issue from happening again in the future.
This commit is contained in:
parent
fa626bd143
commit
fa48d42163
@ -69,7 +69,7 @@ BOOST_AUTO_TEST_CASE(run_command)
|
||||
const std::string expected{"err"};
|
||||
BOOST_CHECK_EXCEPTION(RunCommandParseJSON(command), std::runtime_error, [&](const std::runtime_error& e) {
|
||||
const std::string what(e.what());
|
||||
BOOST_CHECK(what.find(strprintf("RunCommandParseJSON error: process(%s) returned", util::Join(command, " "))) != std::string::npos);
|
||||
BOOST_CHECK(what.find(strprintf("RunCommandParseJSON error: process(%s) returned %s: %s", util::Join(command, " "), 1, "err")) != std::string::npos);
|
||||
BOOST_CHECK(what.find(expected) != std::string::npos);
|
||||
return true;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user