diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-24 15:10:37 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-24 16:26:25 +0200 |
commit | 7c3b79768bd174b22154e8d2df0b1211e01ee56a (patch) | |
tree | 9e45c9302083f0438f7ea174f5fb7d6042be5712 /server/tests/client.ts | |
parent | 913b1d71e630d5a959c763bf565a171b4dc61434 (diff) | |
download | PeerTube-7c3b79768bd174b22154e8d2df0b1211e01ee56a.tar.gz PeerTube-7c3b79768bd174b22154e8d2df0b1211e01ee56a.tar.zst PeerTube-7c3b79768bd174b22154e8d2df0b1211e01ee56a.zip |
Use test wrapper exit function
Diffstat (limited to 'server/tests/client.ts')
-rw-r--r-- | server/tests/client.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/tests/client.ts b/server/tests/client.ts index cdf0ce2ce..778dcd08e 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts | |||
@@ -4,12 +4,11 @@ import 'mocha' | |||
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import * as request from 'supertest' | 5 | import * as request from 'supertest' |
6 | import { | 6 | import { |
7 | flushTests, | 7 | cleanupTests, |
8 | flushAndRunServer, | ||
8 | getCustomConfig, | 9 | getCustomConfig, |
9 | getVideosList, | 10 | getVideosList, |
10 | killallServers, | ||
11 | makeHTMLRequest, | 11 | makeHTMLRequest, |
12 | flushAndRunServer, | ||
13 | ServerInfo, | 12 | ServerInfo, |
14 | serverLogin, | 13 | serverLogin, |
15 | updateCustomConfig, | 14 | updateCustomConfig, |
@@ -145,7 +144,7 @@ describe('Test a client controllers', function () { | |||
145 | checkIndexTags(res.text, 'PeerTube updated', 'my short description', 'body { background-color: red; }') | 144 | checkIndexTags(res.text, 'PeerTube updated', 'my short description', 'body { background-color: red; }') |
146 | }) | 145 | }) |
147 | 146 | ||
148 | after(function () { | 147 | after(async function () { |
149 | killallServers([ server ]) | 148 | await cleanupTests([ server ]) |
150 | }) | 149 | }) |
151 | }) | 150 | }) |