]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/multiple-pods.ts
Speed up activity pub http requests
[github/Chocobozzz/PeerTube.git] / server / tests / api / multiple-pods.ts
index fe4e4a036b3cd30bca0e2ebc9b6cc00b7504a2f8..3c6b3f6507c0888ed1f4a82e51aed85b3967082b 100644 (file)
@@ -113,7 +113,7 @@ describe('Test multiple pods', function () {
         expect(video.tags).to.deep.equal([ 'tag1p1', 'tag2p1' ])
         expect(dateIsValid(video.createdAt)).to.be.true
         expect(dateIsValid(video.updatedAt)).to.be.true
-        expect(video.author).to.equal('root')
+        expect(video.account).to.equal('root')
 
         const res2 = await getVideo(server.url, video.uuid)
         const videoDetails = res2.body
@@ -202,7 +202,7 @@ describe('Test multiple pods', function () {
         expect(video.tags).to.deep.equal([ 'tag1p2', 'tag2p2', 'tag3p2' ])
         expect(dateIsValid(video.createdAt)).to.be.true
         expect(dateIsValid(video.updatedAt)).to.be.true
-        expect(video.author).to.equal('user1')
+        expect(video.account).to.equal('user1')
 
         if (server.url !== 'http://localhost:9002') {
           expect(video.isLocal).to.be.false
@@ -509,8 +509,8 @@ describe('Test multiple pods', function () {
         const video0 = videos.find(v => v.uuid === localVideosPod3[0])
         const video1 = videos.find(v => v.uuid === localVideosPod3[1])
 
-        expect(video0.views).to.equal(4)
-        expect(video1.views).to.equal(2)
+        expect(video0.views).to.equal(7)
+        expect(video1.views).to.equal(5)
       }
     })
 
@@ -696,7 +696,7 @@ describe('Test multiple pods', function () {
         expect(baseVideo.licence).to.equal(video.licence)
         expect(baseVideo.category).to.equal(video.category)
         expect(baseVideo.nsfw).to.equal(video.nsfw)
-        expect(baseVideo.author).to.equal(video.author)
+        expect(baseVideo.author).to.equal(video.account)
         expect(baseVideo.tags).to.deep.equal(video.tags)
       }
     })