From 5fe7e898316e18369c3e1aba307b55077adc7bfb Mon Sep 17 00:00:00 2001 From: Green-Star Date: Sun, 2 Jul 2017 20:48:31 +0200 Subject: 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. --- server/tests/api/check-params/videos.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/tests/api/check-params/videos.js') 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 () { }) it('Should succeed with the correct parameters', function (done) { - this.timeout(5000) + this.timeout(10000) const data = { name: 'my super name', @@ -392,6 +392,7 @@ describe('Test videos API validator', function () { const attach = { 'videofile': pathUtils.join(__dirname, '..', 'fixtures', 'video_short.webm') } + requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, function () { attach.videofile = pathUtils.join(__dirname, '..', 'fixtures', 'video_short.mp4') requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, function () { -- cgit v1.2.3