diff options
author | Chocobozzz <me@florianbigard.com> | 2018-11-15 17:12:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-15 17:13:27 +0100 |
commit | 8cf998733496d44fa564e2e252356b871756c984 (patch) | |
tree | 1db5a0d9fd99895404ff7b1494ee14155543c08b /server | |
parent | 8f9e8be1fc46ce1744ed6ff537ce2fb995fe7b58 (diff) | |
download | PeerTube-8cf998733496d44fa564e2e252356b871756c984.tar.gz PeerTube-8cf998733496d44fa564e2e252356b871756c984.tar.zst PeerTube-8cf998733496d44fa564e2e252356b871756c984.zip |
Fix video channel videos url when scrolling
Diffstat (limited to 'server')
-rw-r--r-- | server/tests/api/server/handle-down.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/server/handle-down.ts b/server/tests/api/server/handle-down.ts index ed15c8090..0421b2b40 100644 --- a/server/tests/api/server/handle-down.ts +++ b/server/tests/api/server/handle-down.ts | |||
@@ -5,7 +5,7 @@ import 'mocha' | |||
5 | import { JobState, Video } from '../../../../shared/models' | 5 | import { JobState, Video } from '../../../../shared/models' |
6 | import { VideoPrivacy } from '../../../../shared/models/videos' | 6 | import { VideoPrivacy } from '../../../../shared/models/videos' |
7 | import { VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' | 7 | import { VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' |
8 | import { completeVideoCheck, getVideo, immutableAssign, reRunServer, unfollow, viewVideo } from '../../utils' | 8 | import { completeVideoCheck, getVideo, immutableAssign, reRunServer, unfollow, updateVideo, viewVideo } from '../../utils' |
9 | import { | 9 | import { |
10 | flushAndRunMultipleServers, | 10 | flushAndRunMultipleServers, |
11 | getVideosList, | 11 | getVideosList, |
@@ -194,15 +194,15 @@ describe('Test handle downs', function () { | |||
194 | expect(res.body.data).to.have.lengthOf(2) | 194 | expect(res.body.data).to.have.lengthOf(2) |
195 | }) | 195 | }) |
196 | 196 | ||
197 | it('Should send a view to server 3, and automatically fetch the video', async function () { | 197 | it('Should send an update to server 3, and automatically fetch the video', async function () { |
198 | this.timeout(15000) | 198 | this.timeout(15000) |
199 | 199 | ||
200 | const res1 = await getVideosList(servers[2].url) | 200 | const res1 = await getVideosList(servers[2].url) |
201 | expect(res1.body.data).to.be.an('array') | 201 | expect(res1.body.data).to.be.an('array') |
202 | expect(res1.body.data).to.have.lengthOf(11) | 202 | expect(res1.body.data).to.have.lengthOf(11) |
203 | 203 | ||
204 | await viewVideo(servers[0].url, missedVideo1.uuid) | 204 | await updateVideo(servers[0].url, servers[0].accessToken, missedVideo1.uuid, { }) |
205 | await viewVideo(servers[0].url, unlistedVideo.uuid) | 205 | await updateVideo(servers[0].url, servers[0].accessToken, unlistedVideo.uuid, { }) |
206 | 206 | ||
207 | await waitJobs(servers) | 207 | await waitJobs(servers) |
208 | 208 | ||