mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Make all tail node test writres are sync
This commit is contained in:
parent
c38aa91a4d
commit
df751be331
@ -26,9 +26,7 @@ describe('TailNode', function() {
|
||||
|
||||
var resourcesDir = path.join(__dirname,"..","..","..","resources");
|
||||
var fileToTail = path.join(resourcesDir,"28-tail-test-file.txt");
|
||||
fs.writeFile(fileToTail, "Tail message line 1\nTail message line 2\n", function (err) {
|
||||
if (err) { console.log('cannot write to '+fileToTail); }
|
||||
});
|
||||
fs.writeFileSync(fileToTail, "Tail message line 1\nTail message line 2\n");
|
||||
|
||||
beforeEach(function(done) {
|
||||
helper.startServer(done);
|
||||
@ -79,7 +77,7 @@ describe('TailNode', function() {
|
||||
msg.payload.should.equal("Tail message line 5\nTail message line 6\n");
|
||||
done();
|
||||
});
|
||||
fs.appendFile(fileToTail, "Tail message line 5\nTail message line 6\n");
|
||||
fs.appendFileSync(fileToTail, "Tail message line 5\nTail message line 6\n");
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user