aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/singlePod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-07-18 17:17:52 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-07-18 17:17:52 +0200
commit1a42c9e2c0fb64cdbebd81b311736e752f591e0a (patch)
treee893324d730878257491428ffca634a92f1eea05 /server/tests/api/singlePod.js
parentd56ec0d4129160a6e3b51ace3766bb325db1f101 (diff)
downloadPeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.tar.gz
PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.tar.zst
PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.zip
Server: udpate async to 2.0.0
Diffstat (limited to 'server/tests/api/singlePod.js')
-rw-r--r--server/tests/api/singlePod.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/tests/api/singlePod.js b/server/tests/api/singlePod.js
index 465a86b13..6ed719f87 100644
--- a/server/tests/api/singlePod.js
+++ b/server/tests/api/singlePod.js
@@ -1,11 +1,12 @@
1'use strict' 1'use strict'
2 2
3const async = require('async')
4const chai = require('chai') 3const chai = require('chai')
4const each = require('async/each')
5const expect = chai.expect 5const expect = chai.expect
6const fs = require('fs') 6const fs = require('fs')
7const keyBy = require('lodash/keyBy') 7const keyBy = require('lodash/keyBy')
8const pathUtils = require('path') 8const pathUtils = require('path')
9const series = require('async/series')
9 10
10const webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent')) 11const webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent'))
11webtorrent.silent = true 12webtorrent.silent = true
@@ -20,7 +21,7 @@ describe('Test a single pod', function () {
20 before(function (done) { 21 before(function (done) {
21 this.timeout(20000) 22 this.timeout(20000)
22 23
23 async.series([ 24 series([
24 function (next) { 25 function (next) {
25 utils.flushTests(next) 26 utils.flushTests(next)
26 }, 27 },
@@ -280,7 +281,7 @@ describe('Test a single pod', function () {
280 'video_short.mp4', 'video_short.ogv', 'video_short.webm', 281 'video_short.mp4', 'video_short.ogv', 'video_short.webm',
281 'video_short1.webm', 'video_short2.webm', 'video_short3.webm' 282 'video_short1.webm', 'video_short2.webm', 'video_short3.webm'
282 ] 283 ]
283 async.each(videos, function (video, callbackEach) { 284 each(videos, function (video, callbackEach) {
284 const name = video + ' name' 285 const name = video + ' name'
285 const description = video + ' description' 286 const description = video + ' description'
286 const tags = [ 'tag1', 'tag2', 'tag3' ] 287 const tags = [ 'tag1', 'tag2', 'tag3' ]
@@ -318,7 +319,7 @@ describe('Test a single pod', function () {
318 // For the next test 319 // For the next test
319 videosListBase = videos 320 videosListBase = videos
320 321
321 async.each(videos, function (video, callbackEach) { 322 each(videos, function (video, callbackEach) {
322 if (err) throw err 323 if (err) throw err
323 const videoName = video.name.replace(' name', '') 324 const videoName = video.name.replace(' name', '')
324 325