More robust server stats tests

pull/3489/head
Chocobozzz 2020-12-16 14:59:33 +01:00
parent bcbf643249
commit 9e454eba57
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 3 deletions

View File

@ -185,13 +185,13 @@ describe('Test stats (excluding redundancy)', function () {
}
})
const res1 = await getStats(servers[1].url)
const first = res1.body as ServerStats
for (let i = 0; i < 10; i++) {
await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'video' })
}
const res1 = await getStats(servers[1].url)
const first = res1.body as ServerStats
await waitJobs(servers)
const res2 = await getStats(servers[1].url)