-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test for #158 #170
test for #158 #170
Conversation
clean clients should not have persistent subscription records. #158
Subscriptions are cleared on connect https://github.com/cordovapolymer/aedes/blob/5a4210ad477bd2477be2748a19485a4e5f7a173b/lib/handlers/connect.js#L96-L99. You should put some assertions on the persistence itself if you want to check that they should not be stored. |
@mcollina |
var subscriber = connect(setup(broker), { clean: true, clientId: 'abcde' }) | ||
|
||
subscribe(t, subscriber, 'hello', 0, function () { | ||
subscriber.inStream.end() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should check after this, not after reconnection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! corrected that, now it fails on a master without a patch from @sundryp
Can you remove the yarn-lock file? |
@mcollina
Please see my test for #158
It doesn't fail without the patch from #158 ..
Am I doing it right?