Skip to content

Commit 533e9da

Browse files
committed
chore: increase the timeout for unit tests to prevent flakiness
tap's default timeout for tests is 30 seconds. our unit tests usually finish in about 29 seconds, but some times it crosses that limit, failing the run. let's allow ourselves up to 5 minutes for unit tests to complete before failing builds.
1 parent 23bfc5c commit 533e9da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"pretest": "./scripts/build-image.sh",
77
"test": "npm run lint && npm run build && npm run test:unit && npm run test:integration",
8-
"test:unit": "NODE_ENV=test tap test/unit",
8+
"test:unit": "NODE_ENV=test tap test/unit --timeout=300",
99
"test:system": "tap test/system --timeout=600",
1010
"test:integration": "TEST_PLATFORM=kind CREATE_CLUSTER=true tap test/integration/kubernetes.test.ts --timeout=900",
1111
"test:integration:kind": "TEST_PLATFORM=kind CREATE_CLUSTER=true tap test/integration/kubernetes.test.ts --timeout=900",

0 commit comments

Comments
 (0)