Skip to content

Commit

Permalink
fix(retainer): test case failed for expired retained msg
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-xiaoyu committed Sep 3, 2021
1 parent a89bc97 commit f4eae8c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
%% limitations under the License.
%%--------------------------------------------------------------------

-module(mqtt_protocol_v5_SUITE).
-module(emqx_retainer_mqtt_v5_SUITE).

-compile(export_all).
-compile(nowarn_export_all).
Expand Down Expand Up @@ -117,7 +117,7 @@ t_publish_message_expiry_interval(_) ->
{ok, _} = emqtt:publish(Client1, <<"topic/B">>, #{'Message-Expiry-Interval' => 1}, <<"retained message">>, [{qos, 2}, {retain, true}]),
{ok, _} = emqtt:publish(Client1, <<"topic/C">>, #{'Message-Expiry-Interval' => 10}, <<"retained message">>, [{qos, 1}, {retain, true}]),
{ok, _} = emqtt:publish(Client1, <<"topic/D">>, #{'Message-Expiry-Interval' => 10}, <<"retained message">>, [{qos, 2}, {retain, true}]),
timer:sleep(1000),
timer:sleep(1500),
{ok, _, [2]} = emqtt:subscribe(Client1, <<"topic/+">>, 2),
Msgs = receive_messages(4),
?assertEqual(2, length(Msgs)), %% [MQTT-3.3.2-5]
Expand Down

0 comments on commit f4eae8c

Please sign in to comment.