From 9e3b6da9ca6727184242e5322f8e22491b0ca6e4 Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Tue, 22 Dec 2020 18:22:17 +0800 Subject: [PATCH] fix(test): delete extra verfication for 'max_age' --- apps/emqx_coap/test/emqx_coap_ps_SUITE.erl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/emqx_coap/test/emqx_coap_ps_SUITE.erl b/apps/emqx_coap/test/emqx_coap_ps_SUITE.erl index 83c1dd5fa..2bde5dfbd 100644 --- a/apps/emqx_coap/test/emqx_coap_ps_SUITE.erl +++ b/apps/emqx_coap/test/emqx_coap_ps_SUITE.erl @@ -422,8 +422,7 @@ t_case01_subscribe(_Config) -> %% GET to read the publish message of the topic Reply1 = er_coap_client:request(get, Uri1), ?LOGT("Reply=~p", [Reply1]), - {ok,content, #coap_content{max_age = MaxAgeLeft,payload = <<"123">>}} = Reply1, - ?assertEqual(true, MaxAgeLeft<60), + {ok,content, #coap_content{payload = <<"123">>}} = Reply1, er_coap_observer:stop(Pid), {ok, deleted, #coap_content{}} = er_coap_client:request(delete, Uri1). @@ -512,10 +511,10 @@ t_case01_read(_Config) -> ?assertEqual(<<"42">>, CT1), %% GET to read the publish message of the topic + timer:sleep(1000), Reply1 = er_coap_client:request(get, Uri), ?LOGT("Reply=~p", [Reply1]), - {ok,content, #coap_content{max_age = MaxAgeLeft,payload = Payload}} = Reply1, - ?assertEqual(true, MaxAgeLeft<60), + {ok,content, #coap_content{payload = Payload}} = Reply1, {ok, deleted, #coap_content{}} = er_coap_client:request(delete, Uri).