mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-23 00:09:08 +01:00
parent
56e35cf4f8
commit
40bf3c28e6
1 changed files with 1 additions and 4 deletions
|
@ -19,20 +19,17 @@ 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 () => {
|
||||
connection = await initDb(true);
|
||||
const connection = await initDb(true);
|
||||
Followings = connection.getRepository(Following);
|
||||
}));
|
||||
|
||||
afterEach(() => {
|
||||
connection.close();
|
||||
p.kill();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue