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