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/api/check-params/follows.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/api/check-params/follows.ts')
-rw-r--r-- | server/tests/api/check-params/follows.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/server/tests/api/check-params/follows.ts b/server/tests/api/check-params/follows.ts index 02f47c2bb..2eb54cb0a 100644 --- a/server/tests/api/check-params/follows.ts +++ b/server/tests/api/check-params/follows.ts | |||
@@ -3,7 +3,13 @@ | |||
3 | import 'mocha' | 3 | import 'mocha' |
4 | 4 | ||
5 | import { | 5 | import { |
6 | createUser, flushTests, killallServers, makeDeleteRequest, makePostBodyRequest, flushAndRunServer, ServerInfo, setAccessTokensToServers, | 6 | cleanupTests, |
7 | createUser, | ||
8 | flushAndRunServer, | ||
9 | makeDeleteRequest, | ||
10 | makePostBodyRequest, | ||
11 | ServerInfo, | ||
12 | setAccessTokensToServers, | ||
7 | userLogin | 13 | userLogin |
8 | } from '../../../../shared/extra-utils' | 14 | } from '../../../../shared/extra-utils' |
9 | import { | 15 | import { |
@@ -295,7 +301,7 @@ describe('Test server follows API validators', function () { | |||
295 | }) | 301 | }) |
296 | }) | 302 | }) |
297 | 303 | ||
298 | after(function () { | 304 | after(async function () { |
299 | killallServers([ server ]) | 305 | await cleanupTests([ server ]) |
300 | }) | 306 | }) |
301 | }) | 307 | }) |