test: refactor EE mysql bridge test case

Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
This commit is contained in:
Erik Timan 2022-12-21 10:13:05 +01:00 committed by Erik Timan
parent d5a41b801e
commit aab914d65a
1 changed files with 5 additions and 8 deletions

View File

@ -421,15 +421,12 @@ t_write_timeout(Config) ->
Val = integer_to_binary(erlang:unique_integer()),
SentData = #{payload => Val, timestamp => 1668602148000},
Timeout = 10,
?check_trace(
emqx_common_test_helpers:with_failure(timeout, ProxyName, ProxyHost, ProxyPort, fun() ->
emqx_common_test_helpers:with_failure(timeout, ProxyName, ProxyHost, ProxyPort, fun() ->
?assertMatch(
{error, {resource_error, _}},
query_resource(Config, {send_message, SentData, [], Timeout})
end),
fun(Result, _Trace) ->
?assertMatch({error, {resource_error, _}}, Result),
ok
end
),
)
end),
ok.
t_simple_sql_query(Config) ->