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/check-params/config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/tests/api/check-params/config.ts') diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 3d80c629e..2a2ec606a 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts @@ -6,7 +6,7 @@ import { CustomConfig } from '../../../../shared/models/server/custom-config.mod import { createUser, flushTests, killallServers, makeDeleteRequest, makeGetRequest, makePutBodyRequest, flushAndRunServer, ServerInfo, - setAccessTokensToServers, userLogin, immutableAssign + setAccessTokensToServers, userLogin, immutableAssign, cleanupTests } from '../../../../shared/extra-utils' describe('Test config API validators', function () { @@ -181,7 +181,7 @@ describe('Test config API validators', function () { }) it('Should fail if email disabled and signup requires email verification', async function () { - // opposite scenario - succcess when enable enabled - covered via tests/api/users/user-verification.ts + // opposite scenario - success when enable enabled - covered via tests/api/users/user-verification.ts const newUpdateParams = immutableAssign(updateParams, { signup: { enabled: true, @@ -229,7 +229,7 @@ describe('Test config API validators', function () { }) }) - after(function () { - killallServers([ server ]) + after(async function () { + await cleanupTests([ server ]) }) }) -- cgit v1.2.3