auth_test: coroutinize test_password_authenticator_attributes

Use co_await instead of return+do_with_cql_env+make_ready_future
for improved readability.
This commit is contained in:
Avi Kivity
2026-04-05 17:28:09 +03:00
parent e3dee64003
commit fbccfe5c9d

View File

@@ -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));
}