Skip to content

Commit 0c3e8dc

Browse files
committed
test: await sub tests in test-timeout-flag.js
1 parent ae25faf commit 0c3e8dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/fixtures/test-runner/output/test-timeout-flag.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
const { describe, test } = require('node:test');
44
const { setTimeout } = require('node:timers/promises');
55

6-
describe('--test-timeout is set to 20ms', () => {
7-
test('should timeout after 20ms', async () => {
6+
describe('--test-timeout is set to 20ms', async () => {
7+
await test('should timeout after 20ms', async () => {
88
await setTimeout(200000, undefined, { ref: false });
99
});
10-
test('should timeout after 5ms', { timeout: 5 }, async () => {
10+
await test('should timeout after 5ms', { timeout: 5 }, async () => {
1111
await setTimeout(200000, undefined, { ref: false });
1212
});
1313

14-
test('should not timeout', { timeout: 50000 }, async () => {
14+
await test('should not timeout', { timeout: 50000 }, async () => {
1515
await setTimeout(1);
1616
});
1717

18-
test('should pass', async () => {});
18+
await test('should pass', async () => {});
1919
});

0 commit comments

Comments
 (0)