Relax localfilesystem fsync tests

This commit is contained in:
Nick O'Leary 2018-01-22 14:16:31 +00:00
parent ad6e55ca17
commit 15f41a2e7c
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 3 deletions

View File

@ -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) {