diff --git a/test/boost/result_utils_test.cc b/test/boost/result_utils_test.cc index 59ff4009e2..4de38633de 100644 --- a/test/boost/result_utils_test.cc +++ b/test/boost/result_utils_test.cc @@ -242,7 +242,8 @@ SEASTAR_THREAD_TEST_CASE(test_result_map_reduce) { auto bar_exc = [] () { return result(bo::failure(bar_exception())); }; auto foo_throw = [] () { return make_exception_future>(foo_exception()); }; - BOOST_REQUIRE_EQUAL(reduce(sstring("brown"), sstring("fox")).value(), "the brown fox"); + auto res = reduce(sstring("brown"), sstring("fox")).value(); + BOOST_REQUIRE(res == "the brown fox" || res == "the fox brown"); BOOST_REQUIRE_EQUAL(reduce(foo_exc(), sstring("fox")).error(), exc_container(foo_exception())); BOOST_REQUIRE_EQUAL(reduce(sstring("brown"), foo_exc()).error(), exc_container(foo_exception())); BOOST_REQUIRE_EQUAL(reduce(foo_exc(), bar_exc()).error(), exc_container(foo_exception()));