diff options
Diffstat (limited to 'server/tests/api/videos/video-change-ownership.ts')
-rw-r--r-- | server/tests/api/videos/video-change-ownership.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-change-ownership.ts b/server/tests/api/videos/video-change-ownership.ts index 89dba14b1..88e4d51a2 100644 --- a/server/tests/api/videos/video-change-ownership.ts +++ b/server/tests/api/videos/video-change-ownership.ts | |||
@@ -7,7 +7,6 @@ import { | |||
7 | acceptChangeOwnership, | 7 | acceptChangeOwnership, |
8 | changeVideoOwnership, | 8 | changeVideoOwnership, |
9 | cleanupTests, | 9 | cleanupTests, |
10 | createLive, | ||
11 | createUser, | 10 | createUser, |
12 | doubleFollow, | 11 | doubleFollow, |
13 | flushAndRunMultipleServers, | 12 | flushAndRunMultipleServers, |
@@ -112,9 +111,9 @@ describe('Test video change ownership - nominal', function () { | |||
112 | 111 | ||
113 | { | 112 | { |
114 | const attributes = { name: 'live', channelId: firstUserChannelId, privacy: VideoPrivacy.PUBLIC } | 113 | const attributes = { name: 'live', channelId: firstUserChannelId, privacy: VideoPrivacy.PUBLIC } |
115 | const res = await createLive(servers[0].url, firstUserAccessToken, attributes) | 114 | const video = await servers[0].liveCommand.createLive({ token: firstUserAccessToken, fields: attributes }) |
116 | 115 | ||
117 | liveId = res.body.video.id | 116 | liveId = video.id |
118 | } | 117 | } |
119 | 118 | ||
120 | await doubleFollow(servers[0], servers[1]) | 119 | await doubleFollow(servers[0], servers[1]) |