Skip to content

Commit 0f6b65e

Browse files
authored
test/api/datasets: fix async forEach callbackFn (#1667)
Ref #1456
1 parent 1166f1a commit 0f6b65e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/integration/api/datasets.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ const testEntities = (test) => testService(async (service, container) => {
2626
'12345678-1234-4123-8234-123456789abc'
2727
];
2828

29-
uuids.forEach(async _uuid => {
30-
await asAlice.post('/v1/projects/1/datasets/people/entities')
29+
await Promise.all(uuids.map(_uuid =>
30+
asAlice.post('/v1/projects/1/datasets/people/entities')
3131
.send({
3232
uuid: _uuid,
3333
label: 'John Doe'
3434
})
35-
.expect(200);
36-
});
35+
.expect(200)
36+
));
3737

3838
await test(service, container);
3939
});

0 commit comments

Comments
 (0)