From 7c3b79768bd174b22154e8d2df0b1211e01ee56a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Apr 2019 15:10:37 +0200 Subject: Use test wrapper exit function --- server/tests/api/notifications/user-notifications.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/api/notifications/user-notifications.ts') 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 { userLogin, wait, getCustomConfig, - updateCustomConfig, getVideoThreadComments, getVideoCommentThreads, follow + updateCustomConfig, getVideoThreadComments, getVideoCommentThreads, follow, cleanupTests } from '../../../../shared/extra-utils' import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/extra-utils/index' import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login' @@ -1295,9 +1295,9 @@ describe('Test users notifications', function () { }) }) - after(function () { + after(async function () { MockSmtpServer.Instance.kill() - killallServers(servers) + await cleanupTests(servers) }) }) -- cgit v1.2.3