Skip to content

Commit f5e6a6b

Browse files
committed
test(NODE-7197): await .forEach()
1 parent d0e32b5 commit f5e6a6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration/crud/find_cursor_methods.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ describe('Find Cursor', function () {
178178
const cursor = coll.find({}, { batchSize: 2 });
179179

180180
const bag = [];
181-
cursor.forEach(doc => {
181+
await cursor.forEach(doc => {
182182
bag.push(doc);
183183
});
184184

0 commit comments

Comments
 (0)