Closed troian closed 6 years ago
Or cleanRetained() could be called at the beginning of the test.
(When the entire suite of tests is run, cleanRetained() is run at the start, so this shouldn't be a problem unless the test is run in isolation.)
Fixed now. Thanks.
Test above will always fail as callback2.messages might have more than 2 messages if there was some retained one. callback2.clear() should be after bclient.unsubscribe([topics[0]])