diff options
author | Green-Star <Green-Star@users.noreply.github.com> | 2017-07-02 20:48:31 +0200 |
---|---|---|
committer | Bigard Florian <florian.bigard@gmail.com> | 2017-07-02 20:48:31 +0200 |
commit | 5fe7e898316e18369c3e1aba307b55077adc7bfb (patch) | |
tree | 1ea859558b44250dce43be1be7261c2e79df454b /server/tests/api/check-params/videos.js | |
parent | ba44fa19531186944fef3e9da34f5e91f0c0dedb (diff) | |
download | PeerTube-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/check-params/videos.js')
-rw-r--r-- | server/tests/api/check-params/videos.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tests/api/check-params/videos.js b/server/tests/api/check-params/videos.js index ec4cc4ce8..ce6c49583 100644 --- a/server/tests/api/check-params/videos.js +++ b/server/tests/api/check-params/videos.js | |||
@@ -378,7 +378,7 @@ describe('Test videos API validator', function () { | |||
378 | }) | 378 | }) |
379 | 379 | ||
380 | it('Should succeed with the correct parameters', function (done) { | 380 | it('Should succeed with the correct parameters', function (done) { |
381 | this.timeout(5000) | 381 | this.timeout(10000) |
382 | 382 | ||
383 | const data = { | 383 | const data = { |
384 | name: 'my super name', | 384 | name: 'my super name', |
@@ -392,6 +392,7 @@ describe('Test videos API validator', function () { | |||
392 | const attach = { | 392 | const attach = { |
393 | 'videofile': pathUtils.join(__dirname, '..', 'fixtures', 'video_short.webm') | 393 | 'videofile': pathUtils.join(__dirname, '..', 'fixtures', 'video_short.webm') |
394 | } | 394 | } |
395 | |||
395 | requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, function () { | 396 | requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, function () { |
396 | attach.videofile = pathUtils.join(__dirname, '..', 'fixtures', 'video_short.mp4') | 397 | attach.videofile = pathUtils.join(__dirname, '..', 'fixtures', 'video_short.mp4') |
397 | requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, function () { | 398 | requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, function () { |