Skip to content

Commit 28bf120

Browse files
committed
Updated tests
1 parent ec3e554 commit 28bf120

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/client/submit.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,10 +1275,13 @@ module.exports = function() {
12751275
doc = connection.get('dogs', 'fido');
12761276
doc.create({name: 'fido'}, function() {
12771277
doc.on('op', function(op, source, src, context) {
1278+
if (src) {
1279+
return;
1280+
}
12781281
expect(context.op.m).equal(undefined);
12791282
done();
12801283
});
1281-
doc.submitOp([{p: ['tricks'], oi: ['fetch']}], {source: 'trainer'}, errorHandler(done));
1284+
doc.submitOp([{p: ['tricks'], oi: ['fetch']}], {source: 'trainer'}, errorHandler(function() {}));
12821285
});
12831286
});
12841287
});

0 commit comments

Comments
 (0)