From 18484577b12becdfad67425b1f5b0e6b854fb87c Mon Sep 17 00:00:00 2001 From: Tobias Lindahl Date: Fri, 28 May 2021 10:30:12 +0200 Subject: [PATCH] test: enable non-running test suite Due to a name clash a ct testsuite was previously not running. --- ...rotocol_v5_SUITE.erl => emqx_mqtt_protocol_v5_SUITE.erl} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename test/{mqtt_protocol_v5_SUITE.erl => emqx_mqtt_protocol_v5_SUITE.erl} (99%) diff --git a/test/mqtt_protocol_v5_SUITE.erl b/test/emqx_mqtt_protocol_v5_SUITE.erl similarity index 99% rename from test/mqtt_protocol_v5_SUITE.erl rename to test/emqx_mqtt_protocol_v5_SUITE.erl index 0956a07fc..3508a68a3 100644 --- a/test/mqtt_protocol_v5_SUITE.erl +++ b/test/emqx_mqtt_protocol_v5_SUITE.erl @@ -14,7 +14,7 @@ %% limitations under the License. %%-------------------------------------------------------------------- --module(mqtt_protocol_v5_SUITE). +-module(emqx_mqtt_protocol_v5_SUITE). -compile(export_all). -compile(nowarn_export_all). @@ -37,6 +37,7 @@ init_per_suite(Config) -> %% Meck emqtt ok = meck:new(emqtt, [non_strict, passthrough, no_history, no_link]), %% Start Apps + emqx_ct_helpers:boot_modules(all), emqx_ct_helpers:start_apps([]), Config. @@ -288,6 +289,9 @@ t_connect_emit_stats_timeout(_) -> %% [MQTT-3.1.2-22] t_connect_keepalive_timeout(_) -> + %% Prevent the emqtt client bringing us down on the disconnect. + process_flag(trap_exit, true), + Keepalive = 2, {ok, Client} = emqtt:start_link([{proto_ver, v5},