diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-17 15:42:12 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 572f8d3dba44ba874f5c51023214273e3f5b643c (patch) | |
tree | d8f71046205d5e4618f5a1c5ed002dd1b8bc6661 /server/tests/api/video-abuse.ts | |
parent | 9a27cdc27c900feaae5f6db4315c4ccdfc0c4493 (diff) | |
download | PeerTube-572f8d3dba44ba874f5c51023214273e3f5b643c.tar.gz PeerTube-572f8d3dba44ba874f5c51023214273e3f5b643c.tar.zst PeerTube-572f8d3dba44ba874f5c51023214273e3f5b643c.zip |
Fix public video we set to public or unlisted
Diffstat (limited to 'server/tests/api/video-abuse.ts')
-rw-r--r-- | server/tests/api/video-abuse.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/video-abuse.ts b/server/tests/api/video-abuse.ts index bc21ee59b..60bee9c3d 100644 --- a/server/tests/api/video-abuse.ts +++ b/server/tests/api/video-abuse.ts | |||
@@ -22,7 +22,7 @@ describe('Test video abuses', function () { | |||
22 | let servers: ServerInfo[] = [] | 22 | let servers: ServerInfo[] = [] |
23 | 23 | ||
24 | before(async function () { | 24 | before(async function () { |
25 | this.timeout(100000) | 25 | this.timeout(50000) |
26 | 26 | ||
27 | // Run servers | 27 | // Run servers |
28 | servers = await flushAndRunMultipleServers(2) | 28 | servers = await flushAndRunMultipleServers(2) |
@@ -46,8 +46,8 @@ describe('Test video abuses', function () { | |||
46 | } | 46 | } |
47 | await uploadVideo(servers[1].url, servers[1].accessToken, video2Attributes) | 47 | await uploadVideo(servers[1].url, servers[1].accessToken, video2Attributes) |
48 | 48 | ||
49 | // Wait videos propagation | 49 | // Wait videos propagation, server 2 has transcoding enabled |
50 | await wait(25000) | 50 | await wait(10000) |
51 | 51 | ||
52 | const res = await getVideosList(servers[0].url) | 52 | const res = await getVideosList(servers[0].url) |
53 | const videos = res.body.data | 53 | const videos = res.body.data |
@@ -67,13 +67,13 @@ describe('Test video abuses', function () { | |||
67 | }) | 67 | }) |
68 | 68 | ||
69 | it('Should report abuse on a local video', async function () { | 69 | it('Should report abuse on a local video', async function () { |
70 | this.timeout(15000) | 70 | this.timeout(10000) |
71 | 71 | ||
72 | const reason = 'my super bad reason' | 72 | const reason = 'my super bad reason' |
73 | await reportVideoAbuse(servers[0].url, servers[0].accessToken, servers[0].video.id, reason) | 73 | await reportVideoAbuse(servers[0].url, servers[0].accessToken, servers[0].video.id, reason) |
74 | 74 | ||
75 | // We wait requests propagation, even if the server 1 is not supposed to make a request to server 2 | 75 | // We wait requests propagation, even if the server 1 is not supposed to make a request to server 2 |
76 | await wait(11000) | 76 | await wait(5000) |
77 | }) | 77 | }) |
78 | 78 | ||
79 | it('Should have 1 video abuses on server 1 and 0 on server 2', async function () { | 79 | it('Should have 1 video abuses on server 1 and 0 on server 2', async function () { |
@@ -96,13 +96,13 @@ describe('Test video abuses', function () { | |||
96 | }) | 96 | }) |
97 | 97 | ||
98 | it('Should report abuse on a remote video', async function () { | 98 | it('Should report abuse on a remote video', async function () { |
99 | this.timeout(25000) | 99 | this.timeout(10000) |
100 | 100 | ||
101 | const reason = 'my super bad reason 2' | 101 | const reason = 'my super bad reason 2' |
102 | await reportVideoAbuse(servers[0].url, servers[0].accessToken, servers[1].video.id, reason) | 102 | await reportVideoAbuse(servers[0].url, servers[0].accessToken, servers[1].video.id, reason) |
103 | 103 | ||
104 | // We wait requests propagation | 104 | // We wait requests propagation |
105 | await wait(15000) | 105 | await wait(5000) |
106 | }) | 106 | }) |
107 | 107 | ||
108 | it('Should have 2 video abuse on server 1 and 1 on server 2', async function () { | 108 | it('Should have 2 video abuse on server 1 and 1 on server 2', async function () { |