Skip to content

Commit

Permalink
test: fix test case which asserts shutdown
Browse files Browse the repository at this point in the history
now the connect call should actually receve a error reply
  • Loading branch information
zmstone committed Nov 18, 2024
1 parent 66025d3 commit 1fc55da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/emqtt_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,8 @@ t_ssl_error_server_reject_client(Config) ->
, {verify, verify_none}
]}
]),
?assertExit({{shutdown,
{tls_alert,
{unknown_ca,
"TLS client: In state connection received SERVER ALERT: Fatal - Unknown CA\n"}}}, _},
emqtt:connect(C)),
{error, Reason} = emqtt:connect(C),
?assertMatch({ssl_error, _Sock, {tls_alert, {unknown_ca, _}}}, Reason),
ok.

t_reconnect_enabled(Config) ->
Expand Down

0 comments on commit 1fc55da

Please sign in to comment.