From e14bd35ace6e3147b25843c92a7fe3800a91f671 Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 30 Jan 2023 10:21:21 -0400 Subject: [PATCH] - fix `livedata stub - stubs before connected` --- packages/ddp-client/test/livedata_connection_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.