1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-24 07:06:31 +09:00

一回一回コネクションを閉じる

This commit is contained in:
rinsuki 2019-10-25 18:24:42 +09:00
parent 273e090d3f
commit 56e35cf4f8

View File

@ -19,17 +19,20 @@ import * as childProcess from 'child_process';
import { connectStream, signup, request, post, launchServer } from './utils';
import { Following } from '../src/models/entities/following';
import { initDb } from '../src/db/postgre';
import { Connection } from 'typeorm';
describe('Streaming', () => {
let p: childProcess.ChildProcess;
let Followings: any;
let connection: Connection;
beforeEach(launchServer(g => p = g, async () => {
const connection = await initDb(true);
connection = await initDb(true);
Followings = connection.getRepository(Following);
}));
afterEach(() => {
connection.close();
p.kill();
});