From 242e35c2128697d2844ef2c085003182fb30a06e Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sun, 14 Jan 2018 00:44:33 +0000 Subject: [PATCH] Fix file tests now the node properly creates directories --- test/nodes/core/storage/50-file_spec.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/test/nodes/core/storage/50-file_spec.js b/test/nodes/core/storage/50-file_spec.js index 7491b477a..a558beb4f 100644 --- a/test/nodes/core/storage/50-file_spec.js +++ b/test/nodes/core/storage/50-file_spec.js @@ -380,9 +380,7 @@ describe('file Nodes', function() { return evt[0].type == "file"; }); //console.log(logEvents); - logEvents.should.have.length(1); - logEvents[0][0].should.have.a.property('msg'); - logEvents[0][0].msg.toString().should.startWith("file.errors.appendfail"); + logEvents.should.have.length(0); done(); } catch(e) { done(e); } @@ -405,9 +403,7 @@ describe('file Nodes', function() { return evt[0].type == "file"; }); //console.log(logEvents); - logEvents.should.have.length(1); - logEvents[0][0].should.have.a.property('msg'); - logEvents[0][0].msg.toString().should.startWith("file.errors.appendfail"); + logEvents.should.have.length(0); done(); } catch(e) { done(e); } @@ -431,9 +427,7 @@ describe('file Nodes', function() { return evt[0].type == "file"; }); //console.log(logEvents); - logEvents.should.have.length(1); - logEvents[0][0].should.have.a.property('msg'); - logEvents[0][0].msg.toString().should.startWith("file.errors.writefail"); + logEvents.should.have.length(0); done(); } catch(e) { done(e); } @@ -457,9 +451,7 @@ describe('file Nodes', function() { return evt[0].type == "file"; }); //console.log(logEvents); - logEvents.should.have.length(1); - logEvents[0][0].should.have.a.property('msg'); - logEvents[0][0].msg.toString().should.startWith("file.errors.writefail"); + logEvents.should.have.length(0); done(); } catch(e) { done(e); }