From 0fb44b487a67f2fdb8c0ac609a79ecc42e9c86a3 Mon Sep 17 00:00:00 2001 From: devinderstockholm3219gmailcom Date: Sun, 21 Jun 2026 18:22:27 +0300 Subject: [PATCH] fix(ci): pass --timeout explicitly to bun test instead of relying on bunfig.toml CI was failing on every run since Testcontainers/e2e tests were added: the e2e test's 5000ms default bun test timeout was being hit on GitHub Actions' slower runners, because bunfig.toml's configured 60000ms timeout wasn't taking effect there (it was on local dev, exposing a resolution difference tied to bun-version). Passing --timeout 60000 directly on each package's test script removes the dependency on that discovery working the same way across environments. --- packages/shared/package.json | 2 +- services/kitchen/package.json | 2 +- services/menu/package.json | 2 +- services/notification/package.json | 2 +- services/order/package.json | 2 +- tests/e2e/package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/shared/package.json b/packages/shared/package.json index f9882fb..9a8276d 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -5,7 +5,7 @@ "main": "src/index.ts", "types": "src/index.ts", "scripts": { - "test": "bun test" + "test": "bun test --timeout 60000" }, "dependencies": { "amqplib": "^2.0.0", diff --git a/services/kitchen/package.json b/services/kitchen/package.json index 8d50f28..68cfdca 100644 --- a/services/kitchen/package.json +++ b/services/kitchen/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "bun --watch run src/index.ts", "start": "bun run src/index.ts", - "test": "bun test" + "test": "bun test --timeout 60000" }, "dependencies": { "@quickbite/shared": "workspace:*", diff --git a/services/menu/package.json b/services/menu/package.json index 79685c7..06711a6 100644 --- a/services/menu/package.json +++ b/services/menu/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "bun --watch run src/index.ts", "start": "bun run src/index.ts", - "test": "bun test" + "test": "bun test --timeout 60000" }, "dependencies": { "@quickbite/shared": "workspace:*", diff --git a/services/notification/package.json b/services/notification/package.json index 3dab322..967e204 100644 --- a/services/notification/package.json +++ b/services/notification/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "bun --watch run src/index.ts", "start": "bun run src/index.ts", - "test": "bun test" + "test": "bun test --timeout 60000" }, "dependencies": { "@quickbite/shared": "workspace:*", diff --git a/services/order/package.json b/services/order/package.json index 0837185..bbdd053 100644 --- a/services/order/package.json +++ b/services/order/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "bun --watch run src/index.ts", "start": "bun run src/index.ts", - "test": "bun test" + "test": "bun test --timeout 60000" }, "dependencies": { "@quickbite/shared": "workspace:*", diff --git a/tests/e2e/package.json b/tests/e2e/package.json index 57aef96..965a4dc 100644 --- a/tests/e2e/package.json +++ b/tests/e2e/package.json @@ -15,6 +15,6 @@ "fastify": "^5.0.0" }, "scripts": { - "test": "bun test" + "test": "bun test --timeout 60000" } }