aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/user-subscriptions.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-16 11:18:13 +0100
committerChocobozzz <me@florianbigard.com>2018-11-16 11:18:13 +0100
commit8d1fa36ad22a21a9b0fb6bf51a27d09954220013 (patch)
treee2a8ea0277c05d7f0729ab2eed395e2ea6f3809d /server/tests/api/check-params/user-subscriptions.ts
parent7373507fa830b0f18cb4cd95dfd923b1600e501d (diff)
downloadPeerTube-8d1fa36ad22a21a9b0fb6bf51a27d09954220013.tar.gz
PeerTube-8d1fa36ad22a21a9b0fb6bf51a27d09954220013.tar.zst
PeerTube-8d1fa36ad22a21a9b0fb6bf51a27d09954220013.zip
Do not host remote AP objects
Diffstat (limited to 'server/tests/api/check-params/user-subscriptions.ts')
-rw-r--r--server/tests/api/check-params/user-subscriptions.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/check-params/user-subscriptions.ts b/server/tests/api/check-params/user-subscriptions.ts
index 9fba99ac8..6af7ed43b 100644
--- a/server/tests/api/check-params/user-subscriptions.ts
+++ b/server/tests/api/check-params/user-subscriptions.ts
@@ -15,6 +15,7 @@ import {
15 userLogin 15 userLogin
16} from '../../utils' 16} from '../../utils'
17import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params' 17import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params'
18import { waitJobs } from '../../utils/server/jobs'
18 19
19describe('Test user subscriptions API validators', function () { 20describe('Test user subscriptions API validators', function () {
20 const path = '/api/v1/users/me/subscriptions' 21 const path = '/api/v1/users/me/subscriptions'
@@ -141,6 +142,8 @@ describe('Test user subscriptions API validators', function () {
141 }) 142 })
142 143
143 it('Should succeed with the correct parameters', async function () { 144 it('Should succeed with the correct parameters', async function () {
145 this.timeout(20000)
146
144 await makePostBodyRequest({ 147 await makePostBodyRequest({
145 url: server.url, 148 url: server.url,
146 path, 149 path,
@@ -148,6 +151,8 @@ describe('Test user subscriptions API validators', function () {
148 fields: { uri: 'user1_channel@localhost:9001' }, 151 fields: { uri: 'user1_channel@localhost:9001' },
149 statusCodeExpected: 204 152 statusCodeExpected: 204
150 }) 153 })
154
155 await waitJobs([ server ])
151 }) 156 })
152 }) 157 })
153 158