mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fixing test termination
This commit is contained in:
parent
960d15491d
commit
ea22ffa2bf
@ -72,8 +72,10 @@ describe('TailNode', function() {
|
||||
helperNode1.on("input", function(msg) {
|
||||
msg.should.have.property('topic', fileToTail);
|
||||
msg.payload.should.equal("Tail message line" + (++inputCounter));
|
||||
if(inputCounter === 2) {
|
||||
done();
|
||||
}
|
||||
});
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
@ -86,8 +88,8 @@ describe('TailNode', function() {
|
||||
helperNode1.on("input", function(msg) {
|
||||
msg.should.have.property('topic', fileToTail);
|
||||
msg.payload.should.equal("Tail message line1\nTail message line2\n");
|
||||
done();
|
||||
});
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user