aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/video-change-ownership.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-08 10:18:40 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commit4f2199144e428c16460750305f737b890c1ac322 (patch)
treea19c5c0f254ab0b32d6c8838af33a1ba260e4877 /server/tests/api/videos/video-change-ownership.ts
parent2c27e70471120c92e0bc8c8114141fbb31ff98ac (diff)
downloadPeerTube-4f2199144e428c16460750305f737b890c1ac322.tar.gz
PeerTube-4f2199144e428c16460750305f737b890c1ac322.tar.zst
PeerTube-4f2199144e428c16460750305f737b890c1ac322.zip
Introduce live command
Diffstat (limited to 'server/tests/api/videos/video-change-ownership.ts')
-rw-r--r--server/tests/api/videos/video-change-ownership.ts5
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])