Skip to content

Commit 1b9bf99

Browse files
committed
chore: set timeout as flag for CI
1 parent 5356d01 commit 1b9bf99

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
run: npx ava src/test/api.spec.ts
4545

4646
- name: test cli
47-
run: npx ava src/test/cli.spec.ts
47+
run: npx ava src/test/cli.spec.ts --timeout=1m

src/test/cli.spec.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ import { join, resolve } from 'path';
44
import test, { before } from 'ava';
55

66
before(() => {
7-
if (process.env.CI) {
8-
return;
9-
}
10-
117
const filesToDelete = [
128
resolve(__dirname, 'basic', 'test.pdf'),
139
resolve(__dirname, 'nested', 'root.pdf'),
@@ -24,8 +20,6 @@ before(() => {
2420
}
2521
}
2622
}
27-
28-
console.log('all compiled test pdfs have been deleted');
2923
});
3024

3125
test('should compile the basic example to pdf using --basedir', async t => {
@@ -37,7 +31,6 @@ test('should compile the basic example to pdf using --basedir', async t => {
3731
resolve(__dirname, 'basic'),
3832
].join(' ');
3933

40-
t.timeout(60000);
4134
t.notThrows(() => execSync(cmd));
4235

4336
t.notThrows(() => readFileSync(resolve(__dirname, 'basic', 'test.pdf'), 'utf-8'));
@@ -52,7 +45,6 @@ test('should compile the nested example to pdfs', t => {
5245
join('level-one', 'level-two', 'two.md'),
5346
].join(' ');
5447

55-
t.timeout(60000);
5648
t.notThrows(() => execSync(cmd, { cwd: resolve(__dirname, 'nested') }));
5749

5850
t.notThrows(() => readFileSync(resolve(__dirname, 'nested', 'root.pdf'), 'utf-8'));

0 commit comments

Comments
 (0)