test: convert a few more specs to async/await (#40313)

This commit is contained in:
Milan Burda 2023-11-17 10:44:03 +01:00 committed by GitHub
parent 471449d9f6
commit 67894f1493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 48 additions and 61 deletions

View file

@ -873,7 +873,7 @@ describe('node feature', () => {
});
};
process.once('unhandledRejection', () => done('catch block is delayed to next tick'));
process.once('unhandledRejection', () => done(new Error('catch block is delayed to next tick')));
setTimeout(() => {
f3().catch(() => done());