mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 03:45:11 +00:00
auth_test: coroutinize test_create_roles_with_hashed_password_and_log_in
Use co_await instead of return for improved readability.
This commit is contained in:
@@ -356,7 +356,7 @@ SEASTAR_TEST_CASE(test_create_roles_with_hashed_password_and_log_in) {
|
||||
// This test ensures that Scylla allows for creating roles with hashed passwords
|
||||
// following the format of one of the supported algorithms, as well as logging in
|
||||
// as that role is performed successfully.
|
||||
return do_with_cql_env_thread([] (cql_test_env& env) {
|
||||
co_await do_with_cql_env_thread([] (cql_test_env& env) {
|
||||
// Pairs of form (password, hashed password).
|
||||
constexpr std::pair<std::string_view, std::string_view> passwords[] = {
|
||||
// bcrypt's.
|
||||
|
||||
Reference in New Issue
Block a user