diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-09 15:44:54 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-09 15:44:54 +0100 |
commit | 0fbc0dec59684527fad8772080a8e1f928c07ea1 (patch) | |
tree | fbbb76187cf83aa4e7c6ce32e36be2d53a28bdc0 /server/tests/api/videos | |
parent | 9e847c17f968076287025c798b87506a8d50bb93 (diff) | |
download | PeerTube-0fbc0dec59684527fad8772080a8e1f928c07ea1.tar.gz PeerTube-0fbc0dec59684527fad8772080a8e1f928c07ea1.tar.zst PeerTube-0fbc0dec59684527fad8772080a8e1f928c07ea1.zip |
Fix tests
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/video-privacy.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/server/tests/api/videos/video-privacy.ts b/server/tests/api/videos/video-privacy.ts index b51b3bcdd..08b624ff3 100644 --- a/server/tests/api/videos/video-privacy.ts +++ b/server/tests/api/videos/video-privacy.ts | |||
@@ -2,7 +2,15 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { cleanupTests, createSingleServer, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' | 5 | import { |
6 | cleanupTests, | ||
7 | createSingleServer, | ||
8 | doubleFollow, | ||
9 | PeerTubeServer, | ||
10 | setAccessTokensToServers, | ||
11 | wait, | ||
12 | waitJobs | ||
13 | } from '@shared/extra-utils' | ||
6 | import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' | 14 | import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' |
7 | 15 | ||
8 | const expect = chai.expect | 16 | const expect = chai.expect |
@@ -209,7 +217,7 @@ describe('Test video privacy', function () { | |||
209 | describe('Privacy update', function () { | 217 | describe('Privacy update', function () { |
210 | 218 | ||
211 | it('Should update the private and internal videos to public on server 1', async function () { | 219 | it('Should update the private and internal videos to public on server 1', async function () { |
212 | this.timeout(10000) | 220 | this.timeout(100000) |
213 | 221 | ||
214 | now = Date.now() | 222 | now = Date.now() |
215 | 223 | ||
@@ -230,6 +238,7 @@ describe('Test video privacy', function () { | |||
230 | await servers[0].videos.update({ id: internalVideoId, attributes }) | 238 | await servers[0].videos.update({ id: internalVideoId, attributes }) |
231 | } | 239 | } |
232 | 240 | ||
241 | await wait(10000) | ||
233 | await waitJobs(servers) | 242 | await waitJobs(servers) |
234 | }) | 243 | }) |
235 | 244 | ||