From 2ba609dfac20ec775e1d06eb57b56d5ea0543e92 Mon Sep 17 00:00:00 2001 From: Guillaume Deconinck Date: Wed, 22 Jul 2026 14:10:57 +0900 Subject: [PATCH] fix: small fixes --- .cargo/config.toml | 1 + .github/workflows/server-test.yml | 4 ++++ clients/javascript/tests/error-handling.spec.ts | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 9547cfc0..9c49e538 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,6 +2,7 @@ [env] TS_RS_EXPORT_DIR = { value = "clients/javascript/lib/gen_types", relative = true } +SQLX_OFFLINE = "true" [target.x86_64-unknown-linux-gnu] rustflags = ["-C", "link-arg=-fuse-ld=mold"] diff --git a/.github/workflows/server-test.yml b/.github/workflows/server-test.yml index 74a9fcbf..2fccd3a8 100644 --- a/.github/workflows/server-test.yml +++ b/.github/workflows/server-test.yml @@ -71,6 +71,10 @@ jobs: cargo install sqlx-cli --no-default-features --features postgres || true (cd crates/infra && sqlx migrate run) + - name: Check sqlx offline cache is up to date + run: | + cd crates/infra && cargo sqlx prepare --check + - name: Formatting run: | cargo +nightly fmt --all -- --check diff --git a/clients/javascript/tests/error-handling.spec.ts b/clients/javascript/tests/error-handling.spec.ts index 59210b98..402dbf74 100644 --- a/clients/javascript/tests/error-handling.spec.ts +++ b/clients/javascript/tests/error-handling.spec.ts @@ -322,7 +322,8 @@ describe('Error Handling', () => { }) // Mock a timeout - nock('http://localhost:5000') + const port = process.env.NITTEI__HTTP_PORT ?? '5000' + nock(`http://localhost:${port}`) .post('/api/v1/account') .delay(100) .reply(200, {})