diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-06-05 14:54:07 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-05 14:54:07 +0900 |
| commit | 5d66bb879464adb2f23d764a3602f967748069d0 (patch) | |
| tree | 3796b93512a5e4bffd6c79ce32471fe6b44cfe01 /test/user-notes.ts | |
| parent | Add missing migrations (#7552) (diff) | |
| download | misskey-5d66bb879464adb2f23d764a3602f967748069d0.tar.gz misskey-5d66bb879464adb2f23d764a3602f967748069d0.tar.bz2 misskey-5d66bb879464adb2f23d764a3602f967748069d0.zip | |
ランダムにテストがコケるのを修正 (#7553)
* Test shutdown
* Revert "Test shutdown"
This reverts commit 85182e7dd196cdd9ecb46cfb50adaabd04c5ba60.
* Skip beforeShutdown in test
* Wait shutdown in test
* Revert "Skip beforeShutdown in test"
This reverts commit 79c33ab53615e8fa4820d2abfc2494cba55c441c.
* Revert "Revert "Skip beforeShutdown in test""
This reverts commit 3423133a137c79b64f3ff6ef9dbe433a441a47b0.
Diffstat (limited to 'test/user-notes.ts')
| -rw-r--r-- | test/user-notes.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/user-notes.ts b/test/user-notes.ts index 349d5fdb7c..4af8ce0cc7 100644 --- a/test/user-notes.ts +++ b/test/user-notes.ts @@ -12,7 +12,7 @@ process.env.NODE_ENV = 'test'; import * as assert from 'assert'; import * as childProcess from 'child_process'; -import { async, signup, request, post, uploadFile, launchServer } from './utils'; +import { async, signup, request, post, uploadFile, launchServer, shutdownServer } from './utils'; describe('users/notes', () => { let p: childProcess.ChildProcess; @@ -37,8 +37,8 @@ describe('users/notes', () => { }); })); - after(() => { - p.kill(); + after(async() => { + await shutdownServer(p); }); it('ファイルタイプ指定 (jpg)', async(async () => { |