Skip to content

Commit 387dd3a

Browse files
committed
fix(tests/snips/billing): don't wait 40s for nothing when self hosted
1 parent c7ae50d commit 387dd3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/api/src/__tests__/snips/billing.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const sleepForBatchBilling = () => sleep(20000);
55

66
beforeAll(async () => {
77
// Wait for previous test runs to stop billing processing
8-
await sleep(40000);
8+
if (!process.env.TEST_SUITE_SELF_HOSTED) {
9+
await sleep(40000);
10+
}
911
}, 50000);
1012

1113
describe("Billing tests", () => {

0 commit comments

Comments
 (0)