Skip to content

Commit 74baad8

Browse files
Test cannot change username during token refresh
1 parent 0ad7bd0 commit 74baad8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

deps/rabbitmq_auth_backend_oauth2/test/jwks_SUITE.erl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -962,13 +962,9 @@ cannot_change_username_on_refreshed_token(Config) ->
962962
<<"rabbitmq.read:vhost4/*">>]),
963963

964964
%% the error is communicated asynchronously via a connection-level error
965-
{error, _} = amqp_connection:update_secret(Conn, RefreshToken,
966-
<<"token refresh">>),
965+
?assertException(exit, _, amqp_connection:update_secret(Conn, RefreshToken,
966+
<<"token refresh">>)).
967967

968-
?assertExit({{shutdown, {connection_closing, {server_initiated_close, 530, _}}}, _},
969-
amqp_connection:open_channel(Conn)),
970-
971-
close_connection(Conn).
972968

973969
test_failed_connection_with_algorithm_restriction(Config) ->
974970
{_Algo, Token} = get_config(Config, fixture_jwt),

0 commit comments

Comments
 (0)