mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #332 from zobalogh/tail-done-fix
Fixing test termination
This commit is contained in:
commit
15494dda84
@ -80,8 +80,10 @@ describe('TailNode', function() {
|
|||||||
helperNode1.on("input", function(msg) {
|
helperNode1.on("input", function(msg) {
|
||||||
msg.should.have.property('topic', fileToTail);
|
msg.should.have.property('topic', fileToTail);
|
||||||
msg.payload.should.equal("Tail message line" + (++inputCounter));
|
msg.payload.should.equal("Tail message line" + (++inputCounter));
|
||||||
});
|
if(inputCounter === 2) {
|
||||||
done();
|
done();
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -94,8 +96,8 @@ describe('TailNode', function() {
|
|||||||
helperNode1.on("input", function(msg) {
|
helperNode1.on("input", function(msg) {
|
||||||
msg.should.have.property('topic', fileToTail);
|
msg.should.have.property('topic', fileToTail);
|
||||||
msg.payload.should.equal("Tail message line1\nTail message line2\n");
|
msg.payload.should.equal("Tail message line1\nTail message line2\n");
|
||||||
});
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user