test(mysql): fix test case error

This commit is contained in:
firest 2022-12-30 11:38:26 +08:00
parent ff5146450a
commit c77717b1f1
1 changed files with 7 additions and 3 deletions

View File

@ -404,9 +404,13 @@ t_write_failure(Config) ->
emqx_common_test_helpers:with_failure(down, ProxyName, ProxyHost, ProxyPort, fun() -> emqx_common_test_helpers:with_failure(down, ProxyName, ProxyHost, ProxyPort, fun() ->
send_message(Config, SentData) send_message(Config, SentData)
end), end),
fun(Result, _Trace) -> fun
?assertMatch({error, {resource_error, _}}, Result), ({error, {resource_error, _}}, _Trace) ->
ok ok;
({error, {recoverable_error, disconnected}}, _Trace) ->
ok;
(_, _Trace) ->
?assert(false)
end end
), ),
ok. ok.