Ensure expiry_interval expired in testcase

This commit is contained in:
terry-xiaoyu 2019-09-20 19:26:56 +08:00
parent 2c07fc310e
commit a108f292c2
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ message_expiry_interval_exipred(ClientA, QoS) ->
ct:pal("~p ~p", [?FUNCTION_NAME, QoS]),
%% publish to t/a and waiting for the message expired
emqtt:publish(ClientA, <<"t/a">>, #{'Message-Expiry-Interval' => 1}, <<"this will be purged in 1s">>, [{qos, QoS}]),
ct:sleep(1000),
ct:sleep(1500),
%% resume the session for client-b
{ok, ClientB1} = emqtt:start_link([{proto_ver,v5}, {client_id, <<"client-b">>}, {clean_start, false},{properties, #{'Session-Expiry-Interval' => 360}}]),