From fcdbcafa088ff83cdf828c4043ba4382a3553529 Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 18 Dec 2023 18:19:41 -0400 Subject: [PATCH] - fix update EJSON --- packages/mongo/mongo_livedata_tests.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/mongo/mongo_livedata_tests.js b/packages/mongo/mongo_livedata_tests.js index 5158b65d00..37bcb8eac1 100644 --- a/packages/mongo/mongo_livedata_tests.js +++ b/packages/mongo/mongo_livedata_tests.js @@ -3694,12 +3694,12 @@ EJSON.addType('someCustomType', function (json) { }); testAsyncMulti('mongo-livedata - oplog - update EJSON', [ - async function(test) { + async function(test, expect) { var self = this; var collectionName = 'ejson' + Random.id(); if (Meteor.isClient) { - Meteor.call('createInsecureCollection', collectionName); - Meteor.subscribe('c-' + collectionName); + await Meteor.callAsync('createInsecureCollection', collectionName); + Meteor.subscribe('c-' + collectionName, expect()); } self.collection = new Mongo.Collection(collectionName); @@ -3712,7 +3712,6 @@ testAsyncMulti('mongo-livedata - oplog - update EJSON', [ oi: self.objId, custom: new TestCustomType('a', 'b'), }, - { returnServerResultPromise: true } ); }, async function(test, expect) {