diff options
author | buoyantair <buoyantair@protonmail.com> | 2018-11-18 21:55:52 +0530 |
---|---|---|
committer | buoyantair <buoyantair@protonmail.com> | 2018-11-18 21:55:52 +0530 |
commit | b9f234371bfaf0d9cfa81e02fcea92cac1f9ae13 (patch) | |
tree | dcdf451ac431ec7953bee58e814f642d1c370d1b /server/tests/api/check-params/user-subscriptions.ts | |
parent | 92e07c3b5d9dbf2febedb1b5b87ec676eb6d1ac8 (diff) | |
parent | 9d0b856e930ee1c676d16a56408a3e4a18f8f978 (diff) | |
download | PeerTube-b9f234371bfaf0d9cfa81e02fcea92cac1f9ae13.tar.gz PeerTube-b9f234371bfaf0d9cfa81e02fcea92cac1f9ae13.tar.zst PeerTube-b9f234371bfaf0d9cfa81e02fcea92cac1f9ae13.zip |
Merge branch 'develop' of https://github.com/Chocobozzz/PeerTube into move-utils-to-shared
Diffstat (limited to 'server/tests/api/check-params/user-subscriptions.ts')
-rw-r--r-- | server/tests/api/check-params/user-subscriptions.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/tests/api/check-params/user-subscriptions.ts b/server/tests/api/check-params/user-subscriptions.ts index 2cf5a2415..8a9ced7c1 100644 --- a/server/tests/api/check-params/user-subscriptions.ts +++ b/server/tests/api/check-params/user-subscriptions.ts | |||
@@ -14,11 +14,13 @@ import { | |||
14 | setAccessTokensToServers, | 14 | setAccessTokensToServers, |
15 | userLogin | 15 | userLogin |
16 | } from '../../../../shared/utils' | 16 | } from '../../../../shared/utils' |
17 | |||
17 | import { | 18 | import { |
18 | checkBadCountPagination, | 19 | checkBadCountPagination, |
19 | checkBadSortPagination, | 20 | checkBadSortPagination, |
20 | checkBadStartPagination | 21 | checkBadStartPagination |
21 | } from '../../../../shared/utils/requests/check-api-params' | 22 | } from '../../../../shared/utils/requests/check-api-params' |
23 | import { waitJobs } from '../../../../shared/utils/server/jobs' | ||
22 | 24 | ||
23 | describe('Test user subscriptions API validators', function () { | 25 | describe('Test user subscriptions API validators', function () { |
24 | const path = '/api/v1/users/me/subscriptions' | 26 | const path = '/api/v1/users/me/subscriptions' |
@@ -145,6 +147,8 @@ describe('Test user subscriptions API validators', function () { | |||
145 | }) | 147 | }) |
146 | 148 | ||
147 | it('Should succeed with the correct parameters', async function () { | 149 | it('Should succeed with the correct parameters', async function () { |
150 | this.timeout(20000) | ||
151 | |||
148 | await makePostBodyRequest({ | 152 | await makePostBodyRequest({ |
149 | url: server.url, | 153 | url: server.url, |
150 | path, | 154 | path, |
@@ -152,6 +156,8 @@ describe('Test user subscriptions API validators', function () { | |||
152 | fields: { uri: 'user1_channel@localhost:9001' }, | 156 | fields: { uri: 'user1_channel@localhost:9001' }, |
153 | statusCodeExpected: 204 | 157 | statusCodeExpected: 204 |
154 | }) | 158 | }) |
159 | |||
160 | await waitJobs([ server ]) | ||
155 | }) | 161 | }) |
156 | }) | 162 | }) |
157 | 163 | ||