diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-24 10:53:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-24 16:26:23 +0200 |
commit | 210feb6cc484a6c5c63c98f770de34e223f944cb (patch) | |
tree | d1d841892a7ac87ac0d434194597606a375aaed1 /server/tests/api/check-params/users.ts | |
parent | 9cc8d43e37a61709e7275c2a799bdf976dd940ca (diff) | |
download | PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.gz PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.zst PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.zip |
Cleanup tests
Diffstat (limited to 'server/tests/api/check-params/users.ts')
-rw-r--r-- | server/tests/api/check-params/users.ts | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index b62806554..00d0a7e2b 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts | |||
@@ -7,7 +7,7 @@ import { UserRole, VideoImport, VideoImportState } from '../../../../shared' | |||
7 | 7 | ||
8 | import { | 8 | import { |
9 | createUser, flushTests, getMyUserInformation, getMyUserVideoRating, getUsersList, immutableAssign, killallServers, makeGetRequest, | 9 | createUser, flushTests, getMyUserInformation, getMyUserVideoRating, getUsersList, immutableAssign, killallServers, makeGetRequest, |
10 | makePostBodyRequest, makeUploadRequest, makePutBodyRequest, registerUser, removeUser, runServer, ServerInfo, setAccessTokensToServers, | 10 | makePostBodyRequest, makeUploadRequest, makePutBodyRequest, registerUser, removeUser, flushAndRunServer, ServerInfo, setAccessTokensToServers, |
11 | updateUser, uploadVideo, userLogin, deleteMe, unblockUser, blockUser | 11 | updateUser, uploadVideo, userLogin, deleteMe, unblockUser, blockUser |
12 | } from '../../../../shared/extra-utils' | 12 | } from '../../../../shared/extra-utils' |
13 | import { | 13 | import { |
@@ -40,10 +40,8 @@ describe('Test users API validators', function () { | |||
40 | before(async function () { | 40 | before(async function () { |
41 | this.timeout(30000) | 41 | this.timeout(30000) |
42 | 42 | ||
43 | await flushTests() | 43 | server = await flushAndRunServer(1) |
44 | 44 | serverWithRegistrationDisabled = await flushAndRunServer(2) | |
45 | server = await runServer(1) | ||
46 | serverWithRegistrationDisabled = await runServer(2) | ||
47 | 45 | ||
48 | await setAccessTokensToServers([ server ]) | 46 | await setAccessTokensToServers([ server ]) |
49 | 47 | ||
@@ -881,12 +879,7 @@ describe('Test users API validators', function () { | |||
881 | }) | 879 | }) |
882 | }) | 880 | }) |
883 | 881 | ||
884 | after(async function () { | 882 | after(function () { |
885 | killallServers([ server, serverWithRegistrationDisabled ]) | 883 | killallServers([ server, serverWithRegistrationDisabled ]) |
886 | |||
887 | // Keep the logs if the test failed | ||
888 | if (this['ok']) { | ||
889 | await flushTests() | ||
890 | } | ||
891 | }) | 884 | }) |
892 | }) | 885 | }) |