Skip to content

Commit c89589f

Browse files
authored
fix: resolve CI test failures (#153)
* fix: resolve CI test failures - Increase hookTimeout for storage-postgres tests (PGlite init + migrations can exceed the 10s default in CI) - Skip keychain system-keychain tests in CI (no keychain service) * style: format
1 parent 38f46e6 commit c89589f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/core/storage-postgres/vitest.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ import { defineConfig } from "vitest/config";
33
export default defineConfig({
44
test: {
55
include: ["src/**/*.test.ts"],
6+
hookTimeout: 30_000,
67
},
78
});

‎packages/plugins/keychain/src/index.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ describe("keychain plugin", () => {
2121
);
2222

2323
// The tests below exercise the real system keychain.
24-
// Run manually on a supported platform.
24+
// They are skipped in CI because there is no keychain service available.
2525

26-
it.effect("stores and checks secret via system keychain", () =>
26+
it.effect.skipIf(!!process.env.CI)("stores and checks secret via system keychain", () =>
2727
Effect.gen(function* () {
2828
const testId = SecretId.make(`test-keychain-${Date.now()}`);
2929
const executor = yield* createExecutor(
@@ -54,7 +54,7 @@ describe("keychain plugin", () => {
5454
}),
5555
);
5656

57-
it.effect("has returns false for missing secret", () =>
57+
it.effect.skipIf(!!process.env.CI)("has returns false for missing secret", () =>
5858
Effect.gen(function* () {
5959
const executor = yield* createExecutor(
6060
makeTestConfig({

0 commit comments

Comments
 (0)