From 981f74d4588d6633682eac66505c0cb4e7190fd8 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Wed, 3 Nov 2021 21:12:20 +0800 Subject: [PATCH] test(stomp): refine stomp test cases --- apps/emqx_stomp/test/emqx_stomp_SUITE.erl | 2 +- apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/emqx_stomp/test/emqx_stomp_SUITE.erl b/apps/emqx_stomp/test/emqx_stomp_SUITE.erl index 9a5d9698e..c8ab88311 100644 --- a/apps/emqx_stomp/test/emqx_stomp_SUITE.erl +++ b/apps/emqx_stomp/test/emqx_stomp_SUITE.erl @@ -100,7 +100,7 @@ t_heartbeat(_) -> {<<"host">>, <<"127.0.0.1:61613">>}, {<<"login">>, <<"guest">>}, {<<"passcode">>, <<"guest">>}, - {<<"heart-beat">>, <<"1000,800">>}])), + {<<"heart-beat">>, <<"1000,2000">>}])), {ok, Data} = gen_tcp:recv(Sock, 0), {ok, #stomp_frame{command = <<"CONNECTED">>, headers = _, diff --git a/apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl b/apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl index cbced5f43..b0ce378fd 100644 --- a/apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl +++ b/apps/emqx_stomp/test/emqx_stomp_heartbeat_SUITE.erl @@ -35,8 +35,7 @@ t_check_1(_) -> {ok, HrtBt1} = emqx_stomp_heartbeat:check(incoming, 0, HrtBt), {error, timeout} = emqx_stomp_heartbeat:check(incoming, 0, HrtBt1), - {ok, HrtBt2} = emqx_stomp_heartbeat:check(outgoing, 0, HrtBt1), - {error, timeout} = emqx_stomp_heartbeat:check(outgoing, 0, HrtBt2), + {error, timeout} = emqx_stomp_heartbeat:check(outgoing, 0, HrtBt1), ok. t_check_2(_) ->