Skip to content

Commit

Permalink
Sleep after unsubscribing and enable validation for unsubscribe test.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
randomsync committed Feb 27, 2015
1 parent ff738f6 commit 344939e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/keywords.txt
Expand Up @@ -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}
2 changes: 1 addition & 1 deletion tests/pubsub.txt
Expand Up @@ -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

0 comments on commit 344939e

Please sign in to comment.