Skip to content

Commit 4b3d4c2

Browse files
committed
Fix tests to branch off current branch instead of assumed "main"
1 parent 31eaa52 commit 4b3d4c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/utility/edgedb-setup.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ export const ephemeralEdgeDB = async () => {
77
}
88

99
const db = createClient();
10+
const config = await db.resolveConnectionParams();
11+
// Workaround old default fallback. Didn't hit locally, but did in CI.
12+
const main = config.branch === 'edgedb' ? 'main' : config.branch;
1013

1114
await dropStale(db);
1215

1316
const branch = `test_${Date.now()}`;
1417

15-
await db.execute(`create schema branch ${branch} from main`);
18+
await db.execute(`create schema branch ${branch} from ${main}`);
1619

1720
const cleanup = async () => {
1821
await db.execute(`drop branch ${branch}`);

0 commit comments

Comments
 (0)