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/videos/videos-history.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/videos/videos-history.ts')
-rw-r--r-- | server/tests/api/videos/videos-history.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/server/tests/api/videos/videos-history.ts b/server/tests/api/videos/videos-history.ts index 2a904c659..c7e55c1ab 100644 --- a/server/tests/api/videos/videos-history.ts +++ b/server/tests/api/videos/videos-history.ts | |||
@@ -3,12 +3,13 @@ | |||
3 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { | 5 | import { |
6 | cleanupTests, | ||
6 | createUser, | 7 | createUser, |
7 | flushTests, | 8 | flushAndRunServer, |
8 | getVideosListWithToken, | 9 | getVideosListWithToken, |
9 | getVideoWithToken, | 10 | getVideoWithToken, |
10 | killallServers, reRunServer, | 11 | killallServers, |
11 | flushAndRunServer, | 12 | reRunServer, |
12 | searchVideoWithToken, | 13 | searchVideoWithToken, |
13 | ServerInfo, | 14 | ServerInfo, |
14 | setAccessTokensToServers, | 15 | setAccessTokensToServers, |
@@ -220,7 +221,7 @@ describe('Test videos history', function () { | |||
220 | expect(res.body.total).to.equal(0) | 221 | expect(res.body.total).to.equal(0) |
221 | }) | 222 | }) |
222 | 223 | ||
223 | after(function () { | 224 | after(async function () { |
224 | killallServers([ server ]) | 225 | await cleanupTests([ server ]) |
225 | }) | 226 | }) |
226 | }) | 227 | }) |