Skip to content

Commit d68da8b

Browse files
authored
Merge pull request #16366 from Automattic/copilot/fix-github-actions-job-node-18-mongodb-7-0-7
fix: await post.populate() in test to prevent dangling promise on Node 18
2 parents 7037f00 + 7f3a43f commit d68da8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/document.populate.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ describe('document.populate', function() {
205205
param.select = '-email';
206206
param.options = { sort: 'name' };
207207
param.path = '_creator';
208-
post.populate(param);
208+
await post.populate(param);
209209
param.path = 'fans';
210210

211211
await p.populate(param);

0 commit comments

Comments
 (0)