Skip to content

Commit 7873164

Browse files
committed
topic_permission_SUITE: Use binaries for usernames and vhost names
One testsuite was using strings to check the non-existence of a user and a virtual host. Given these names are expected to be binaries, for sure strings won't match.
1 parent b7a9858 commit 7873164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/test/topic_permission_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ topic_permission_database_access1(_Config) ->
127127
)),
128128

129129
{error, {no_such_user, _}} = (catch rabbit_auth_backend_internal:list_user_topic_permissions(
130-
"non-existing-user"
130+
<<"non-existing-user">>
131131
)),
132132

133133
{error, {no_such_vhost, _}} = (catch rabbit_auth_backend_internal:list_vhost_topic_permissions(
134-
"non-existing-vhost"
134+
<<"non-existing-vhost">>
135135
)),
136136

137137
{error, {invalid_regexp, _, _}} = (catch rabbit_auth_backend_internal:set_topic_permissions(

0 commit comments

Comments
 (0)