diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-13 10:06:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-13 10:22:53 +0200 |
commit | 3cd0734fd9b0ff21aaef02317a874e8f1c06e027 (patch) | |
tree | 9e8622d269919addd35b462141ab5f22236aa6f4 /server/tests/client.ts | |
parent | 2186386cca113506791583cb07d6ccacba7af4e0 (diff) | |
download | PeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.tar.gz PeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.tar.zst PeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.zip |
Improve tests when waiting pending jobs
Diffstat (limited to 'server/tests/client.ts')
-rw-r--r-- | server/tests/client.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/server/tests/client.ts b/server/tests/client.ts index 2adb39c5e..687655452 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts | |||
@@ -11,7 +11,7 @@ import { | |||
11 | runServer, | 11 | runServer, |
12 | serverLogin, | 12 | serverLogin, |
13 | uploadVideo, | 13 | uploadVideo, |
14 | getVideosList, updateCustomConfig, getCustomConfig | 14 | getVideosList, updateCustomConfig, getCustomConfig, killallServers |
15 | } from './utils' | 15 | } from './utils' |
16 | 16 | ||
17 | describe('Test a client controllers', function () { | 17 | describe('Test a client controllers', function () { |
@@ -102,11 +102,6 @@ describe('Test a client controllers', function () { | |||
102 | }) | 102 | }) |
103 | 103 | ||
104 | after(async function () { | 104 | after(async function () { |
105 | process.kill(-server.app.pid) | 105 | killallServers([ server ]) |
106 | |||
107 | // Keep the logs if the test failed | ||
108 | if (this['ok']) { | ||
109 | await flushTests() | ||
110 | } | ||
111 | }) | 106 | }) |
112 | }) | 107 | }) |