summaryrefslogtreecommitdiff
path: root/packages/backend/test/e2e/streaming.ts
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2024-01-08 17:43:52 +0900
committerGitHub <noreply@github.com>2024-01-08 17:43:52 +0900
commit35ec41fc1eddd7ebf5552e6f0bceebfbfa077a21 (patch)
treed3bb804799399798c5c8d1d4654932c2d25d868e /packages/backend/test/e2e/streaming.ts
parentfix(backend): `drive/files/update`におけるファイル名のバリデー... (diff)
downloadmisskey-35ec41fc1eddd7ebf5552e6f0bceebfbfa077a21.tar.gz
misskey-35ec41fc1eddd7ebf5552e6f0bceebfbfa077a21.tar.bz2
misskey-35ec41fc1eddd7ebf5552e6f0bceebfbfa077a21.zip
enhance(backend): テストの高速化 (#12939)
* enhance(backend): テストの高速化 * add ls * 自動的にマージされるようなので不要 * 起動方法を揃える * fix test
Diffstat (limited to 'packages/backend/test/e2e/streaming.ts')
-rw-r--r--packages/backend/test/e2e/streaming.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/backend/test/e2e/streaming.ts b/packages/backend/test/e2e/streaming.ts
index a447ba94ae..b6f584fa70 100644
--- a/packages/backend/test/e2e/streaming.ts
+++ b/packages/backend/test/e2e/streaming.ts
@@ -8,12 +8,10 @@ process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import { WebSocket } from 'ws';
import { MiFollowing } from '@/models/Following.js';
-import { signup, api, post, startServer, initTestDb, waitFire, createAppToken, port } from '../utils.js';
-import type { INestApplicationContext } from '@nestjs/common';
+import { api, createAppToken, initTestDb, port, post, signup, waitFire } from '../utils.js';
import type * as misskey from 'misskey-js';
describe('Streaming', () => {
- let app: INestApplicationContext;
let Followings: any;
const follow = async (follower: any, followee: any) => {
@@ -48,7 +46,6 @@ describe('Streaming', () => {
let list: any;
beforeAll(async () => {
- app = await startServer();
const connection = await initTestDb(true);
Followings = connection.getRepository(MiFollowing);
@@ -95,10 +92,6 @@ describe('Streaming', () => {
}, chitose);
}, 1000 * 60 * 2);
- afterAll(async () => {
- await app.close();
- });
-
describe('Events', () => {
test('mention event', async () => {
const fired = await waitFire(