aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-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