mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-19 16:15:07 +00:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user