fix: tests await insert on getAllNames

This commit is contained in:
denihs
2022-12-16 10:36:55 -04:00
parent caaf909204
commit bafd373bb6

View File

@@ -150,7 +150,7 @@ async function getAllNames(shouldThrow = false) {
throw new Meteor.Error('Expected error');
}
if (count <= 0) {
collection.insert({ name: 'async' });
await collection.insert({ name: 'async' });
}
}
Meteor.publish('asyncPublishCursor', async function() {