test: remove unnecessary async tests in EE mysql bridge
The async test cases is not needed since the mysql connector uses the always_sync callback mode.
This commit is contained in:
parent
5461311edc
commit
499a32ce36
|
@ -43,21 +43,15 @@ groups() ->
|
||||||
TCs = emqx_common_test_helpers:all(?MODULE),
|
TCs = emqx_common_test_helpers:all(?MODULE),
|
||||||
[
|
[
|
||||||
{with_batch, [
|
{with_batch, [
|
||||||
{group, sync_query},
|
{group, sync_query}
|
||||||
{group, async_query}
|
|
||||||
]},
|
]},
|
||||||
{without_batch, [
|
{without_batch, [
|
||||||
{group, sync_query},
|
{group, sync_query}
|
||||||
{group, async_query}
|
|
||||||
]},
|
]},
|
||||||
{sync_query, [
|
{sync_query, [
|
||||||
{group, tcp},
|
{group, tcp},
|
||||||
{group, tls}
|
{group, tls}
|
||||||
]},
|
]},
|
||||||
{async_query, [
|
|
||||||
{group, tcp},
|
|
||||||
{group, tls}
|
|
||||||
]},
|
|
||||||
{tcp, TCs},
|
{tcp, TCs},
|
||||||
{tls, TCs}
|
{tls, TCs}
|
||||||
].
|
].
|
||||||
|
@ -86,8 +80,6 @@ init_per_group(tls, Config0) ->
|
||||||
common_init(Config);
|
common_init(Config);
|
||||||
init_per_group(sync_query, Config) ->
|
init_per_group(sync_query, Config) ->
|
||||||
[{query_mode, sync} | Config];
|
[{query_mode, sync} | Config];
|
||||||
init_per_group(async_query, Config) ->
|
|
||||||
[{query_mode, async} | Config];
|
|
||||||
init_per_group(with_batch, Config) ->
|
init_per_group(with_batch, Config) ->
|
||||||
[{enable_batch, true} | Config];
|
[{enable_batch, true} | Config];
|
||||||
init_per_group(without_batch, Config) ->
|
init_per_group(without_batch, Config) ->
|
||||||
|
@ -387,7 +379,6 @@ t_write_failure(Config) ->
|
||||||
ProxyName = ?config(proxy_name, Config),
|
ProxyName = ?config(proxy_name, Config),
|
||||||
ProxyPort = ?config(proxy_port, Config),
|
ProxyPort = ?config(proxy_port, Config),
|
||||||
ProxyHost = ?config(proxy_host, Config),
|
ProxyHost = ?config(proxy_host, Config),
|
||||||
QueryMode = ?config(query_mode, Config),
|
|
||||||
{ok, _} = create_bridge(Config),
|
{ok, _} = create_bridge(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},
|
||||||
|
@ -396,12 +387,7 @@ t_write_failure(Config) ->
|
||||||
send_message(Config, SentData)
|
send_message(Config, SentData)
|
||||||
end),
|
end),
|
||||||
fun(Result, _Trace) ->
|
fun(Result, _Trace) ->
|
||||||
case QueryMode of
|
?assertMatch({error, {resource_error, _}}, Result),
|
||||||
sync ->
|
|
||||||
?assertMatch({error, {resource_error, _}}, Result);
|
|
||||||
async ->
|
|
||||||
?assertEqual(ok, Result)
|
|
||||||
end,
|
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue