Skip to content

Commit

Permalink
Merge pull request #9690 from thalesmg/fix-flaky-jwt-test
Browse files Browse the repository at this point in the history
test(flaky): fix flaky jwt worker test
  • Loading branch information
thalesmg committed Jan 5, 2023
2 parents 3437151 + cf6996c commit 2270749
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/emqx_connector/test/emqx_connector_jwt_worker_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ t_unknown_error(_Config) ->
1_000
),
fun(Trace) ->
%% there seems to be some occasions when empty_key is
%% returned instead.
?assertMatch(
[#{error := {invalid_private_key, some_strange_error}}],
[#{error := Error}] when
Error =:= {invalid_private_key, some_strange_error} orelse
Error =:= empty_key,
?of_kind(connector_jwt_worker_startup_error, Trace)
),
ok
Expand Down

0 comments on commit 2270749

Please sign in to comment.