From fbccfe5c9df016e505eb3e52f558124cb15dd0d9 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 5 Apr 2026 17:28:09 +0300 Subject: [PATCH] auth_test: coroutinize test_password_authenticator_attributes Use co_await instead of return+do_with_cql_env+make_ready_future for improved readability. --- test/boost/auth_test.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/boost/auth_test.cc b/test/boost/auth_test.cc index 1ffb2cc5ba..6a7c9d7277 100644 --- a/test/boost/auth_test.cc +++ b/test/boost/auth_test.cc @@ -53,11 +53,10 @@ SEASTAR_TEST_CASE(test_default_authenticator) { } SEASTAR_TEST_CASE(test_password_authenticator_attributes) { - return do_with_cql_env([](cql_test_env& env) { + co_await do_with_cql_env_thread([](cql_test_env& env) { auto& a = env.local_auth_service().underlying_authenticator(); BOOST_REQUIRE(a.require_authentication()); BOOST_REQUIRE_EQUAL(a.qualified_java_name(), auth::password_authenticator_name); - return make_ready_future(); }, auth_on(false)); }