Merge pull request #9690 from thalesmg/fix-flaky-jwt-test

test(flaky): fix flaky jwt worker test
This commit is contained in:
Thales Macedo Garitezi 2023-01-05 14:00:39 -03:00 committed by GitHub
commit 22707495ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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