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/config.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/config.ts')
-rw-r--r-- | server/tests/api/check-params/config.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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 | |||
6 | 6 | ||
7 | import { | 7 | import { |
8 | createUser, flushTests, killallServers, makeDeleteRequest, makeGetRequest, makePutBodyRequest, flushAndRunServer, ServerInfo, | 8 | createUser, flushTests, killallServers, makeDeleteRequest, makeGetRequest, makePutBodyRequest, flushAndRunServer, ServerInfo, |
9 | setAccessTokensToServers, userLogin, immutableAssign | 9 | setAccessTokensToServers, userLogin, immutableAssign, cleanupTests |
10 | } from '../../../../shared/extra-utils' | 10 | } from '../../../../shared/extra-utils' |
11 | 11 | ||
12 | describe('Test config API validators', function () { | 12 | describe('Test config API validators', function () { |
@@ -181,7 +181,7 @@ describe('Test config API validators', function () { | |||
181 | }) | 181 | }) |
182 | 182 | ||
183 | it('Should fail if email disabled and signup requires email verification', async function () { | 183 | it('Should fail if email disabled and signup requires email verification', async function () { |
184 | // opposite scenario - succcess when enable enabled - covered via tests/api/users/user-verification.ts | 184 | // opposite scenario - success when enable enabled - covered via tests/api/users/user-verification.ts |
185 | const newUpdateParams = immutableAssign(updateParams, { | 185 | const newUpdateParams = immutableAssign(updateParams, { |
186 | signup: { | 186 | signup: { |
187 | enabled: true, | 187 | enabled: true, |
@@ -229,7 +229,7 @@ describe('Test config API validators', function () { | |||
229 | }) | 229 | }) |
230 | }) | 230 | }) |
231 | 231 | ||
232 | after(function () { | 232 | after(async function () { |
233 | killallServers([ server ]) | 233 | await cleanupTests([ server ]) |
234 | }) | 234 | }) |
235 | }) | 235 | }) |