Fix Flow test for updated node.done api

This commit is contained in:
Nick O'Leary 2019-08-14 22:55:46 +01:00
parent 4ce0e39760
commit 83932e1725
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 2 additions and 2 deletions

View File

@ -148,10 +148,10 @@ describe('Flow', function() {
this.stopped = false;
this.closeDelay = n.closeDelay || 50;
currentNodes[node.id] = node;
this.on('input',function(msg, done) {
this.on('input',function(msg, send, done) {
node.handled++;
node.messages.push(msg);
node.send(msg);
send(msg);
done();
});
this.on('close',function(done) {