fix: db port used in tests
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
- name: Install libsql server
|
||||
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/libsql/releases/download/libsql-server-v0.24.14/libsql-server-installer.sh | sh
|
||||
- name: Test
|
||||
run: bun run test --dbCommand \"~/.cargo/bin/sqld --http-listen-addr=127.0.0.1:3000\"
|
||||
run: bun run test --dbCommand \"~/.cargo/bin/sqld --http-listen-addr=127.0.0.1:3001\"
|
||||
# TODO: uncomment this when https://github.com/cloudflare/workers-sdk/issues/5082 is fixed
|
||||
# - name: Verify env
|
||||
# run: bun env:verify
|
||||
|
||||
@@ -10,8 +10,8 @@ console.error = () => {};
|
||||
|
||||
describe("requests the /watch-status route", () => {
|
||||
const db = getDb({
|
||||
TURSO_URL: "http://127.0.0.1:3000",
|
||||
TURSO_AUTH_TOKEN: "asd",
|
||||
TURSO_URL: process.env.TURSO_URL ?? "http://127.0.0.1:3000",
|
||||
TURSO_AUTH_TOKEN: process.env.TURSO_AUTH_TOKEN ?? "asd",
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
||||
@@ -25,7 +25,7 @@ const dbProcess = $({
|
||||
verbose: true,
|
||||
})`${args.dbCommand}`.nothrow();
|
||||
|
||||
process.env.TURSO_URL = "http://127.0.0.1:3000";
|
||||
process.env.TURSO_URL = "http://127.0.0.1:3001";
|
||||
process.env.TURSO_AUTH_TOKEN = "asd";
|
||||
await $`bun db:migrate`.nothrow();
|
||||
await $({
|
||||
|
||||
Reference in New Issue
Block a user