Remove unnecessary delay in tests.

This commit is contained in:
Miroslav Bajtoš 2015-03-12 10:47:11 +01:00
parent 3de9594bf4
commit 91f59e1ccd
1 changed files with 2 additions and 5 deletions

View File

@ -88,10 +88,7 @@ describe('Replication / Change APIs', function() {
var targetData;
this.SourceModel.create({name: 'foo'}, function(err) {
setTimeout(replicate, 100);
});
function replicate() {
if (err) return done(err);
test.SourceModel.replicate(test.startingCheckpoint, test.TargetModel,
options, function(err, conflicts) {
assert(conflicts.length === 0);
@ -117,7 +114,7 @@ describe('Replication / Change APIs', function() {
done();
});
});
}
});
});
it('applies "since" filter on source changes', function(done) {