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 c959079 commit b58da6bCopy full SHA for b58da6b
test/utility/edgedb-setup.ts
@@ -13,7 +13,7 @@ export const ephemeralEdgeDB = async () => {
13
14
await dropStale(db);
15
16
- const branch = `test_${Date.now()}`;
+ const branch = `test_${Date.now()}_${String(Math.random()).slice(2)}`;
17
18
await db.execute(`create schema branch ${branch} from ${main}`);
19
@@ -34,7 +34,7 @@ async function dropStale(db: Client) {
34
if (!name.startsWith('test_')) {
35
return false;
36
}
37
- const ts = Number(name.slice(5));
+ const ts = Number(name.split('_')[1]);
38
if (isNaN(ts)) {
39
40
0 commit comments