mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
12 lines
331 B
TypeScript
12 lines
331 B
TypeScript
import { DittoDB } from '@/db/DittoDB.ts';
|
|
import { delay } from '@/test.ts';
|
|
|
|
if (Deno.env.get('CI') && Deno.env.get('DATABASE_URL')?.startsWith('postgres')) {
|
|
console.info('Waiting 15 seconds for postgres to start...');
|
|
await delay(15000);
|
|
}
|
|
|
|
const kysely = await DittoDB.getInstance();
|
|
await kysely.destroy();
|
|
|
|
Deno.exit();
|