mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Relax localfilesystem fsync tests
This commit is contained in:
parent
ad6e55ca17
commit
15f41a2e7c
@ -295,7 +295,7 @@ describe('storage/localfilesystem', function() {
|
||||
localfilesystem.init({editorTheme:{projects:{enabled:false}},userDir:userDir, flowFile:flowFilePath}, mockRuntime).then(function() {
|
||||
sinon.spy(fs,"fsync");
|
||||
localfilesystem.saveFlows(testFlow).then(function() {
|
||||
fs.fsync.callCount.should.eql(1);
|
||||
fs.fsync.callCount.should.be.greaterThan(0);
|
||||
fs.fsync.restore();
|
||||
done();
|
||||
}).otherwise(function(err) {
|
||||
@ -316,9 +316,9 @@ describe('storage/localfilesystem', function() {
|
||||
});
|
||||
sinon.spy(log,"warn");
|
||||
localfilesystem.saveFlows(testFlow).then(function() {
|
||||
log.warn.callCount.should.eql(1);
|
||||
fs.fsync.callCount.should.be.greaterThan(0);
|
||||
log.warn.restore();
|
||||
fs.fsync.callCount.should.eql(1);
|
||||
fs.fsync.callCount.should.be.greaterThan(0);
|
||||
fs.fsync.restore();
|
||||
done();
|
||||
}).otherwise(function(err) {
|
||||
|
Loading…
Reference in New Issue
Block a user