test: fix assertMatch patter to make rebar3 fmt work
This commit is contained in:
parent
36ff3d7596
commit
a71d983ff8
|
@ -720,7 +720,8 @@ t_mqtt_conn_bridge_egress_reconnect(_) ->
|
||||||
|
|
||||||
%% verify the metrics of the bridge, the message should be queued
|
%% verify the metrics of the bridge, the message should be queued
|
||||||
?assertMatch(
|
?assertMatch(
|
||||||
#{<<"status">> := Status} when Status == <<"connecting">>; Status == <<"disconnected">>,
|
#{<<"status">> := Status} when
|
||||||
|
Status == <<"connecting">> orelse Status == <<"disconnected">>,
|
||||||
request_bridge(BridgeIDEgress)
|
request_bridge(BridgeIDEgress)
|
||||||
),
|
),
|
||||||
%% matched >= 3 because of possible retries.
|
%% matched >= 3 because of possible retries.
|
||||||
|
@ -797,7 +798,8 @@ t_mqtt_conn_bridge_egress_async_reconnect(_) ->
|
||||||
ok = emqx_listeners:stop_listener('tcp:default'),
|
ok = emqx_listeners:stop_listener('tcp:default'),
|
||||||
ct:sleep(1500),
|
ct:sleep(1500),
|
||||||
?assertMatch(
|
?assertMatch(
|
||||||
#{<<"status">> := Status} when Status == <<"connecting">>; Status == <<"disconnected">>,
|
#{<<"status">> := Status} when
|
||||||
|
Status == <<"connecting">> orelse Status == <<"disconnected">>,
|
||||||
request_bridge(BridgeIDEgress)
|
request_bridge(BridgeIDEgress)
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue