mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 20:05:10 +00:00
auth_test: coroutinize test_alter_with_timeouts
Use co_await instead of return for improved readability.
This commit is contained in:
@@ -176,7 +176,7 @@ SEASTAR_TEST_CASE(role_permissions_table_is_protected) {
|
||||
}
|
||||
|
||||
SEASTAR_TEST_CASE(test_alter_with_timeouts) {
|
||||
return do_with_cql_env_thread([] (cql_test_env& e) {
|
||||
co_await do_with_cql_env_thread([] (cql_test_env& e) {
|
||||
cquery_nofail(e, "CREATE ROLE user1 WITH PASSWORD = 'pass' AND LOGIN = true");
|
||||
cquery_nofail(e, "CREATE ROLE user2 WITH PASSWORD = 'pass' AND LOGIN = true");
|
||||
cquery_nofail(e, "CREATE ROLE user3 WITH PASSWORD = 'pass' AND LOGIN = true");
|
||||
|
||||
Reference in New Issue
Block a user