We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31eaa52 commit 4b3d4c2Copy full SHA for 4b3d4c2
test/utility/edgedb-setup.ts
@@ -7,12 +7,15 @@ export const ephemeralEdgeDB = async () => {
7
}
8
9
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;
13
14
await dropStale(db);
15
16
const branch = `test_${Date.now()}`;
17
- await db.execute(`create schema branch ${branch} from main`);
18
+ await db.execute(`create schema branch ${branch} from ${main}`);
19
20
const cleanup = async () => {
21
await db.execute(`drop branch ${branch}`);
0 commit comments