fix: db port used in tests
This commit is contained in:
@@ -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