From 56e35cf4f83070744c8dd852f1a7075011d88828 Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Fri, 25 Oct 2019 18:24:42 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=9B=9E=E4=B8=80=E5=9B=9E=E3=82=B3?= =?UTF-8?q?=E3=83=8D=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=92=E9=96=89?= =?UTF-8?q?=E3=81=98=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/streaming.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/streaming.ts b/test/streaming.ts index cb962cfb3d..9ae729c29c 100644 --- a/test/streaming.ts +++ b/test/streaming.ts @@ -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(); });