You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: Fix failing exception check in new thread busy test
New thread busy test from 1238170
(bitcoin-core#214) is checking for
"Future already retrieved" error with string match which is fragile and does
not work on all platforms, resulting in error:
test/mp/test/test.cpp:339: error: failed: expected e.what() == std::string("Future already retrieved") [std::future_error: Future already retrieved == Future already retrieved]
This change fixes the test to check for an error code instead.
Separately there seems to be a problem with this KJ_EXPECT call because it
prints error output without causing the test to fail. This may be happening
because it is not called on the main test thread. That issue is not addressed
by this change and requires more followup.
0 commit comments