Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(tests/snips/billing): don't wait 40s for nothing when self hosted

Gergő Móricz387dd3aa380c
diff --git a/apps/api/src/__tests__/snips/billing.test.ts b/apps/api/src/__tests__/snips/billing.test.ts
index b3639fcbc..a7d7bccf1 100644
--- a/apps/api/src/__tests__/snips/billing.test.ts
+++ b/apps/api/src/__tests__/snips/billing.test.ts
@@ -5,7 +5,9 @@ const sleepForBatchBilling = () => sleep(20000);
beforeAll(async () => {
// Wait for previous test runs to stop billing processing
- await sleep(40000);
+ if (!process.env.TEST_SUITE_SELF_HOSTED) {
+ await sleep(40000);
+ }
}, 50000);
describe("Billing tests", () => {