diff options
Diffstat (limited to 'server/tests/api/singlePod.js')
-rw-r--r-- | server/tests/api/singlePod.js | 9 |
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 | ||
3 | const async = require('async') | ||
4 | const chai = require('chai') | 3 | const chai = require('chai') |
4 | const each = require('async/each') | ||
5 | const expect = chai.expect | 5 | const expect = chai.expect |
6 | const fs = require('fs') | 6 | const fs = require('fs') |
7 | const keyBy = require('lodash/keyBy') | 7 | const keyBy = require('lodash/keyBy') |
8 | const pathUtils = require('path') | 8 | const pathUtils = require('path') |
9 | const series = require('async/series') | ||
9 | 10 | ||
10 | const webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent')) | 11 | const webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent')) |
11 | webtorrent.silent = true | 12 | webtorrent.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 | ||