Skip to content

Commit

Permalink
Fix race condition in GlobalConfig test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlutsenko committed Mar 7, 2016
1 parent b2a8292 commit 51cd3d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/ParseGlobalConfig.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ var Parse = require('parse/node').Parse;
let Config = require('../src/Config');

describe('a GlobalConfig', () => {
beforeEach(function (done) {
beforeEach(done => {
let config = new Config('test');
config.database.adaptiveCollection('_GlobalConfig')
.then(coll => coll.upsertOne({ '_id': 1 }, { $set: { params: { companies: ['US', 'DK'] } } }))
.then(done());
.then(() => done);
});

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

0 comments on commit 51cd3d9

Please sign in to comment.