Skip to content

Commit 654a540

Browse files
committed
Fix race condition in GlobalConfig test.
1 parent de0f71c commit 654a540

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/ParseGlobalConfig.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ var Parse = require('parse/node').Parse;
55
let Config = require('../src/Config');
66

77
describe('a GlobalConfig', () => {
8-
beforeEach(function (done) {
8+
beforeEach(done => {
99
let config = new Config('test');
1010
config.database.adaptiveCollection('_GlobalConfig')
1111
.then(coll => coll.upsertOne({ '_id': 1 }, { $set: { params: { companies: ['US', 'DK'] } } }))
12-
.then(done());
12+
.then(() => { done(); });
1313
});
1414

1515
it('can be retrieved', (done) => {

0 commit comments

Comments
 (0)