From 0e5105db6e4d1203c32c09e7b211857e165892e9 Mon Sep 17 00:00:00 2001 From: JimMoen Date: Tue, 15 Feb 2022 00:47:55 +0800 Subject: [PATCH] test(authn): mongo health check more than once --- apps/emqx_authn/test/emqx_authn_mongo_tls_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx_authn/test/emqx_authn_mongo_tls_SUITE.erl b/apps/emqx_authn/test/emqx_authn_mongo_tls_SUITE.erl index 4942ba03e..0e36d125c 100644 --- a/apps/emqx_authn/test/emqx_authn_mongo_tls_SUITE.erl +++ b/apps/emqx_authn/test/emqx_authn_mongo_tls_SUITE.erl @@ -78,8 +78,8 @@ t_create(_Config) -> <<"versions">> => [<<"tlsv1.2">>], <<"ciphers">> => [<<"ECDHE-RSA-AES256-GCM-SHA384">>]}), fun({ok, _}, Trace) -> - ?assertEqual( - [ok], + ?assertMatch( + [ok | _], ?projection( status, ?of_kind(emqx_connector_mongo_health_check, Trace)))