Fixing test termination

This commit is contained in:
zobalogh 2014-08-07 13:23:20 +01:00
parent 960d15491d
commit ea22ffa2bf
1 changed files with 4 additions and 2 deletions

View File

@ -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();
});
});
});