aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-16 14:59:33 +0100
committerChocobozzz <me@florianbigard.com>2020-12-16 14:59:33 +0100
commit9e454eba570ca459a2dc2bb99ed6a700622e4f32 (patch)
tree0e62c177b2cfb3aa5f662b9b753b6cade7ddeb45 /server/tests/api
parentbcbf643249651a53b15116d19e0acbcee613b9a0 (diff)
downloadPeerTube-9e454eba570ca459a2dc2bb99ed6a700622e4f32.tar.gz
PeerTube-9e454eba570ca459a2dc2bb99ed6a700622e4f32.tar.zst
PeerTube-9e454eba570ca459a2dc2bb99ed6a700622e4f32.zip
More robust server stats tests
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/stats.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/server/stats.ts b/server/tests/api/server/stats.ts
index b752da743..6fbf32186 100644
--- a/server/tests/api/server/stats.ts
+++ b/server/tests/api/server/stats.ts
@@ -185,13 +185,13 @@ describe('Test stats (excluding redundancy)', function () {
185 } 185 }
186 }) 186 })
187 187
188 const res1 = await getStats(servers[1].url)
189 const first = res1.body as ServerStats
190
188 for (let i = 0; i < 10; i++) { 191 for (let i = 0; i < 10; i++) {
189 await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'video' }) 192 await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'video' })
190 } 193 }
191 194
192 const res1 = await getStats(servers[1].url)
193 const first = res1.body as ServerStats
194
195 await waitJobs(servers) 195 await waitJobs(servers)
196 196
197 const res2 = await getStats(servers[1].url) 197 const res2 = await getStats(servers[1].url)