From f3001d9ba1229280f180a1c67d516faf9dd644da Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Mon, 18 Nov 2013 10:22:17 +0100 Subject: [PATCH] Better name for test db --- test/mocha.opts | 2 +- test/persistence.test.js | 4 ++-- test_lac/loadAndCrash.test.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/mocha.opts b/test/mocha.opts index 873f95c..b3bf1cb 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1,2 +1,2 @@ --reporter spec ---timeout 10000 +--timeout 10000 \ No newline at end of file diff --git a/test/persistence.test.js b/test/persistence.test.js index 41c9134..8fd5a94 100644 --- a/test/persistence.test.js +++ b/test/persistence.test.js @@ -264,14 +264,14 @@ describe('Persistence', function () { for (i = 0; i < N; i += 1) { toWrite += model.serialize({ _id: customUtils.uid(16), hello: 'world' }) + '\n'; } - fs.writeFileSync('workspace/rah.db', toWrite, 'utf8'); + fs.writeFileSync('workspace/lac.db', toWrite, 'utf8'); // Loading it in a separate process that'll crash before finishing the load cp = child_process.fork('test_lac/loadAndCrash.test') cp.on('message', function (msg) { // Let the child process enough time to crash setTimeout(function () { - fs.readFileSync('workspace/rah.db', 'utf8').length.should.not.equal(0); + fs.readFileSync('workspace/lac.db', 'utf8').length.should.not.equal(0); done(); }, 100); }); diff --git a/test_lac/loadAndCrash.test.js b/test_lac/loadAndCrash.test.js index 015ccbe..500ff6b 100644 --- a/test_lac/loadAndCrash.test.js +++ b/test_lac/loadAndCrash.test.js @@ -1,5 +1,5 @@ var Nedb = require('../lib/datastore.js') - , db = new Nedb({ filename: 'workspace/rah.db' }) + , db = new Nedb({ filename: 'workspace/lac.db' }) ; // Simulate a crash in 100ms