Skip to content

Commit 5bf5a97

Browse files
committed
test: adapt test timeout
1 parent 5f401d8 commit 5bf5a97

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

scripts/test.js

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
import { spawn } from 'child_process'
44
import { fileURLToPath } from 'url'
55

6-
spawn('mocha', ['tests', 'tests/csaf_2_1', ...process.argv.slice(2)], {
7-
stdio: 'inherit',
8-
shell: true,
9-
env: {
10-
...process.env,
11-
DICPATH: fileURLToPath(new URL('../tests/dicts', import.meta.url)),
12-
WORDLIST: fileURLToPath(
13-
new URL('../tests/dicts/csaf_words.txt', import.meta.url)
14-
),
15-
},
16-
})
6+
spawn(
7+
'mocha',
8+
['-t', '10000', 'tests', 'tests/csaf_2_1', ...process.argv.slice(2)],
9+
{
10+
stdio: 'inherit',
11+
shell: true,
12+
env: {
13+
...process.env,
14+
DICPATH: fileURLToPath(new URL('../tests/dicts', import.meta.url)),
15+
WORDLIST: fileURLToPath(
16+
new URL('../tests/dicts/csaf_words.txt', import.meta.url)
17+
),
18+
},
19+
}
20+
)

0 commit comments

Comments
 (0)