From 344939e30582791bb181f5bb399e19f71c51cdfc Mon Sep 17 00:00:00 2001 From: Gaurav Gupta Date: Thu, 26 Feb 2015 22:33:53 -0800 Subject: [PATCH] Sleep after unsubscribing and enable validation for unsubscribe test. There is a possibility that the disconnect happened too quickly after unsubscribe, thus not allowing a clean unsubscribe and broker queuing messages for that client even after disconnect. --- tests/keywords.txt | 1 + tests/pubsub.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/keywords.txt b/tests/keywords.txt index 87ea9e8..c639ab1 100644 --- a/tests/keywords.txt +++ b/tests/keywords.txt @@ -48,5 +48,6 @@ | | Connect | ${broker.uri} | ${broker.port} | ${client.id} | ${false} | | @{messages} | Subscribe | ${topic} | ${qos} | ${timeout} | ${limit} | | Unsubscribe | ${topic} +| | Sleep | 1s | | [Teardown] | Disconnect | | [Return] | @{messages} diff --git a/tests/pubsub.txt b/tests/pubsub.txt index d2bfa7d..2282c94 100644 --- a/tests/pubsub.txt +++ b/tests/pubsub.txt @@ -127,4 +127,4 @@ | | Publish to MQTT Broker and Disconnect | topic=${topic} | message=test message2 | qos=1 | | @{messages} | Subscribe and Get Messages | client.id=${client} | topic=${topic} | | LOG | ${messages} -#| | Length Should Be | ${messages} | 0 +| | Length Should Be | ${messages} | 0