aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/single-pod.js
diff options
context:
space:
mode:
authorGreen-Star <Green-Star@users.noreply.github.com>2017-07-02 20:48:31 +0200
committerBigard Florian <florian.bigard@gmail.com>2017-07-02 20:48:31 +0200
commit5fe7e898316e18369c3e1aba307b55077adc7bfb (patch)
tree1ea859558b44250dce43be1be7261c2e79df454b /server/tests/api/single-pod.js
parentba44fa19531186944fef3e9da34f5e91f0c0dedb (diff)
downloadPeerTube-5fe7e898316e18369c3e1aba307b55077adc7bfb.tar.gz
PeerTube-5fe7e898316e18369c3e1aba307b55077adc7bfb.tar.zst
PeerTube-5fe7e898316e18369c3e1aba307b55077adc7bfb.zip
Fix test (#71)
* Fix timeouting tests * Increase timeout to be sure requests will be propagated * Add timeout to be sure video views will be updated * Use standard style * Fix PR comments.
Diffstat (limited to 'server/tests/api/single-pod.js')
-rw-r--r--server/tests/api/single-pod.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.js
index fe388698f..e08da0517 100644
--- a/server/tests/api/single-pod.js
+++ b/server/tests/api/single-pod.js
@@ -22,7 +22,7 @@ describe('Test a single pod', function () {
22 let videosListBase = null 22 let videosListBase = null
23 23
24 before(function (done) { 24 before(function (done) {
25 this.timeout(20000) 25 this.timeout(120000)
26 26
27 series([ 27 series([
28 function (next) { 28 function (next) {
@@ -181,7 +181,8 @@ describe('Test a single pod', function () {
181 if (err) throw err 181 if (err) throw err
182 expect(test).to.equal(true) 182 expect(test).to.equal(true)
183 183
184 done() 184 // Wait the async views increment
185 setTimeout(done, 500)
185 }) 186 })
186 }) 187 })
187 }) 188 })