From 9e454eba570ca459a2dc2bb99ed6a700622e4f32 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Dec 2020 14:59:33 +0100 Subject: More robust server stats tests --- server/tests/api/server/stats.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/api') 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 () { } }) + 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) -- cgit v1.2.3