Skip to content

Commit bb18dc0

Browse files
authored
chore: increase timeout to avoid flaky tests (#4739)
1 parent ad11923 commit bb18dc0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/jest/acceptance/snyk-test/app-vuln-container-project.spec.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
1111
const jsonOutput = JSON.parse(stdout);
1212
expect(jsonOutput.ok).toEqual(true);
1313
expect(code).toEqual(0);
14-
}, 10000);
14+
}, 30000);
1515
it('should find all vulns including app vulns', async () => {
1616
const { code, stdout } = await runSnykCLI(
1717
`container test docker-archive:test/fixtures/container-projects/os-packages-and-app-vulns.tar --json --experimental`,
@@ -23,7 +23,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
2323
expect(jsonOutput[1].ok).toEqual(false);
2424
expect(jsonOutput[1].uniqueCount).toBeGreaterThan(0);
2525
expect(code).toEqual(1);
26-
}, 10000);
26+
}, 30000);
2727
it('should find nothing when app-vulns are explicitly disabled', async () => {
2828
const { code, stdout } = await runSnykCLI(
2929
`container test docker-archive:test/fixtures/container-projects/os-packages-and-app-vulns.tar --json --exclude-app-vulns`,
@@ -34,7 +34,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
3434
expect(jsonOutput.ok).toEqual(false);
3535
expect(jsonOutput.uniqueCount).toBeGreaterThan(0);
3636
expect(code).toEqual(1);
37-
}, 10000);
37+
}, 30000);
3838
it('should find nothing on conflicting app-vulns flags', async () => {
3939
// if both flags are set, --exclude-app-vulns should take precedence and
4040
// disable it.
@@ -47,15 +47,15 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
4747
expect(jsonOutput.ok).toEqual(false);
4848
expect(jsonOutput.uniqueCount).toBeGreaterThan(0);
4949
expect(code).toEqual(1);
50-
}, 10000);
50+
}, 30000);
5151

5252
it('should show app vulns tip when available', async () => {
5353
const { stdout } = await runSnykCLI(
5454
`container test docker-archive:test/fixtures/container-projects/os-packages-and-app-vulns.tar`,
5555
);
5656

5757
expect(stdout).toContain(`Testing docker-archive:test`);
58-
}, 10000);
58+
}, 30000);
5959

6060
it('should find all vulns without experimental flag', async () => {
6161
const { code, stdout } = await runSnykCLI(
@@ -70,7 +70,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
7070
expect(applications[0].uniqueCount).toBeGreaterThan(0);
7171
expect(applications[0].ok).toEqual(false);
7272
expect(code).toEqual(1);
73-
}, 10000);
73+
}, 30000);
7474
it('should return only dockerfile instructions vulnerabilities when excluding base image vulns', async () => {
7575
const dockerfilePath = path.normalize(
7676
'test/fixtures/container-projects/Dockerfile-vulns',
@@ -84,7 +84,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
8484
expect(jsonOutput.ok).toEqual(false);
8585
expect(jsonOutput.uniqueCount).toBeGreaterThan(0);
8686
expect(code).toEqual(1);
87-
}, 10000);
87+
}, 30000);
8888

8989
it('finds dockerfile instructions and app vulns when excluding base image vulns', async () => {
9090
const dockerfilePath = path.normalize(
@@ -101,7 +101,7 @@ describe('container test projects behavior with --app-vulns, --file and --exclud
101101
expect(jsonOutput.applications[0].ok).toEqual(false);
102102
expect(jsonOutput.applications[0].uniqueCount).toBeGreaterThan(0);
103103
expect(code).toEqual(1);
104-
}, 10000);
104+
}, 30000);
105105
});
106106

107107
describe('container test projects behavior with --json flag', () => {

0 commit comments

Comments
 (0)