diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/users/user-notifications.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/users/user-notifications.ts b/server/tests/api/users/user-notifications.ts index ea35e6390..09c0479fd 100644 --- a/server/tests/api/users/user-notifications.ts +++ b/server/tests/api/users/user-notifications.ts | |||
@@ -152,6 +152,8 @@ describe('Test users notifications', function () { | |||
152 | const videoName = 'remote video ' + videoNameId | 152 | const videoName = 'remote video ' + videoNameId |
153 | 153 | ||
154 | const uuid = await uploadVideoByRemoteAccount(servers, videoNameId) | 154 | const uuid = await uploadVideoByRemoteAccount(servers, videoNameId) |
155 | await waitJobs(servers) | ||
156 | |||
155 | await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'presence') | 157 | await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'presence') |
156 | }) | 158 | }) |
157 | 159 | ||
@@ -194,6 +196,7 @@ describe('Test users notifications', function () { | |||
194 | } | 196 | } |
195 | } | 197 | } |
196 | const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) | 198 | const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) |
199 | await waitJobs(servers) | ||
197 | 200 | ||
198 | await wait(6000) | 201 | await wait(6000) |
199 | await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'presence') | 202 | await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'presence') |
@@ -245,6 +248,7 @@ describe('Test users notifications', function () { | |||
245 | 248 | ||
246 | const data = { privacy: VideoPrivacy.PRIVATE } | 249 | const data = { privacy: VideoPrivacy.PRIVATE } |
247 | const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) | 250 | const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) |
251 | await waitJobs(servers) | ||
248 | 252 | ||
249 | await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'absence') | 253 | await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'absence') |
250 | 254 | ||
@@ -276,6 +280,7 @@ describe('Test users notifications', function () { | |||
276 | 280 | ||
277 | const data = { privacy: VideoPrivacy.PRIVATE } | 281 | const data = { privacy: VideoPrivacy.PRIVATE } |
278 | const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) | 282 | const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) |
283 | await waitJobs(servers) | ||
279 | 284 | ||
280 | await updateVideo(servers[1].url, servers[1].accessToken, uuid, { privacy: VideoPrivacy.UNLISTED }) | 285 | await updateVideo(servers[1].url, servers[1].accessToken, uuid, { privacy: VideoPrivacy.UNLISTED }) |
281 | 286 | ||