test: refactor EE mysql bridge test case
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
This commit is contained in:
parent
d5a41b801e
commit
aab914d65a
|
@ -421,15 +421,12 @@ t_write_timeout(Config) ->
|
||||||
Val = integer_to_binary(erlang:unique_integer()),
|
Val = integer_to_binary(erlang:unique_integer()),
|
||||||
SentData = #{payload => Val, timestamp => 1668602148000},
|
SentData = #{payload => Val, timestamp => 1668602148000},
|
||||||
Timeout = 10,
|
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})
|
query_resource(Config, {send_message, SentData, [], Timeout})
|
||||||
end),
|
)
|
||||||
fun(Result, _Trace) ->
|
end),
|
||||||
?assertMatch({error, {resource_error, _}}, Result),
|
|
||||||
ok
|
|
||||||
end
|
|
||||||
),
|
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
t_simple_sql_query(Config) ->
|
t_simple_sql_query(Config) ->
|
||||||
|
|
Loading…
Reference in New Issue