aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/requests.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-24 16:59:17 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-24 16:59:17 +0100
commit7920c273a204e2469416a30b752b12ccd3160102 (patch)
tree5b3d9ab9596dd5eb079a281f82b836e03eff1617 /server/tests/api/requests.js
parent3897209f46f4c4581be2b8963bf9acc28ca5032b (diff)
downloadPeerTube-7920c273a204e2469416a30b752b12ccd3160102.tar.gz
PeerTube-7920c273a204e2469416a30b752b12ccd3160102.tar.zst
PeerTube-7920c273a204e2469416a30b752b12ccd3160102.zip
Move tags in another table
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