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/notifications/user-notifications.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/notifications/user-notifications.ts')
-rw-r--r-- | server/tests/api/notifications/user-notifications.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index eb4fdb87c..3874b0aab 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts | |||
@@ -19,7 +19,7 @@ import { | |||
19 | userLogin, | 19 | userLogin, |
20 | wait, | 20 | wait, |
21 | getCustomConfig, | 21 | getCustomConfig, |
22 | updateCustomConfig, getVideoThreadComments, getVideoCommentThreads, follow | 22 | updateCustomConfig, getVideoThreadComments, getVideoCommentThreads, follow, cleanupTests |
23 | } from '../../../../shared/extra-utils' | 23 | } from '../../../../shared/extra-utils' |
24 | import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/extra-utils/index' | 24 | import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/extra-utils/index' |
25 | import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login' | 25 | import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login' |
@@ -1295,9 +1295,9 @@ describe('Test users notifications', function () { | |||
1295 | }) | 1295 | }) |
1296 | }) | 1296 | }) |
1297 | 1297 | ||
1298 | after(function () { | 1298 | after(async function () { |
1299 | MockSmtpServer.Instance.kill() | 1299 | MockSmtpServer.Instance.kill() |
1300 | 1300 | ||
1301 | killallServers(servers) | 1301 | await cleanupTests(servers) |
1302 | }) | 1302 | }) |
1303 | }) | 1303 | }) |