mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix: tests await insert on getAllNames
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user