diff --git a/packages/ddp-client/test/livedata_connection_tests.js b/packages/ddp-client/test/livedata_connection_tests.js index 7d8a11c7fb..fc08392632 100644 --- a/packages/ddp-client/test/livedata_connection_tests.js +++ b/packages/ddp-client/test/livedata_connection_tests.js @@ -2293,7 +2293,7 @@ if (Meteor.isClient) { test.length(stream.sent, 0); // Insert a document. The stub updates "conn" directly. - coll.insertAsync({ _id: 'foo', bar: 42 }, _.identity); + await coll.insertAsync({ _id: 'foo', bar: 42 }, _.identity); test.equal(coll.find().count(), 1); test.equal(await coll.findOneAsync(), { _id: 'foo', bar: 42 }); // It also sends the method message.