From fa48d421636c256069010bc03c121c36ed9c0a0c Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 20 Jan 2026 11:34:15 +0100 Subject: [PATCH] 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. --- src/test/system_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/system_tests.cpp b/src/test/system_tests.cpp index 0ba58bcc6da..f4490dec0a5 100644 --- a/src/test/system_tests.cpp +++ b/src/test/system_tests.cpp @@ -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; });