aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/requests.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/requests.js')
-rw-r--r--server/tests/api/requests.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/server/tests/api/requests.js b/server/tests/api/requests.js
index 7e790b54b..933ed29b4 100644
--- a/server/tests/api/requests.js
+++ b/server/tests/api/requests.js
@@ -79,15 +79,16 @@ describe('Test requests stats', function () {
79 uploadVideo(server, function (err) { 79 uploadVideo(server, function (err) {
80 if (err) throw err 80 if (err) throw err
81 81
82 getRequestsStats(server, function (err, res) { 82 setTimeout(function () {
83 if (err) throw err 83 getRequestsStats(server, function (err, res) {
84 if (err) throw err
84 85
85 const body = res.body 86 const body = res.body
86 expect(body.totalRequests).to.equal(1) 87 expect(body.totalRequests).to.equal(1)
87 88
88 // Wait one cycle 89 done()
89 setTimeout(done, 10000) 90 })
90 }) 91 }, 1000)
91 }) 92 })
92 }) 93 })
93 94