Remove unnecessary delay in tests.
This commit is contained in:
parent
3de9594bf4
commit
91f59e1ccd
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue