]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/friends-advanced.js
require -> import
[github/Chocobozzz/PeerTube.git] / server / tests / api / friends-advanced.js
index 15ca1a37c1f161c698fcbd0d22f414caee420ed3..d433e97d02a78582d5836f2030c77ffb9f60651f 100644 (file)
@@ -31,13 +31,12 @@ describe('Test advanced friends', function () {
   }
 
   function uploadVideo (podNumber, callback) {
-    const name = 'my super video'
-    const description = 'my super description'
-    const tags = [ 'tag1', 'tag2' ]
-    const fixture = 'video_short.webm'
+    const videoAttributes = {
+      tags: [ 'tag1', 'tag2' ]
+    }
     const server = servers[podNumber - 1]
 
-    return videosUtils.uploadVideo(server.url, server.accessToken, name, description, tags, fixture, callback)
+    return videosUtils.uploadVideo(server.url, server.accessToken, videoAttributes, callback)
   }
 
   function getVideos (podNumber, callback) {
@@ -170,7 +169,7 @@ describe('Test advanced friends', function () {
         uploadVideo(2, next)
       },
       function (next) {
-        setTimeout(next, 11000)
+        setTimeout(next, 22000)
       },
       // Rerun server 4
       function (next) {