diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/benchmark.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index d9e4a08ab..1d980063b 100644 --- a/scripts/benchmark.ts +++ b/scripts/benchmark.ts | |||
@@ -210,29 +210,29 @@ async function prepare () { | |||
210 | } | 210 | } |
211 | 211 | ||
212 | for (let i = 0; i < 10; i++) { | 212 | for (let i = 0; i < 10; i++) { |
213 | await server.videosCommand.upload({ attributes: { ...attributes, name: 'my super video ' + i } }) | 213 | await server.videos.upload({ attributes: { ...attributes, name: 'my super video ' + i } }) |
214 | } | 214 | } |
215 | 215 | ||
216 | const { data } = await server.videosCommand.list() | 216 | const { data } = await server.videos.list() |
217 | video = data.find(v => v.name === 'my super video 1') | 217 | video = data.find(v => v.name === 'my super video 1') |
218 | 218 | ||
219 | for (let i = 0; i < 10; i++) { | 219 | for (let i = 0; i < 10; i++) { |
220 | const text = 'my super first comment' | 220 | const text = 'my super first comment' |
221 | const created = await server.commentsCommand.createThread({ videoId: video.id, text }) | 221 | const created = await server.comments.createThread({ videoId: video.id, text }) |
222 | threadId = created.id | 222 | threadId = created.id |
223 | 223 | ||
224 | const text1 = 'my super answer to thread 1' | 224 | const text1 = 'my super answer to thread 1' |
225 | const child = await server.commentsCommand.addReply({ videoId: video.id, toCommentId: threadId, text: text1 }) | 225 | const child = await server.comments.addReply({ videoId: video.id, toCommentId: threadId, text: text1 }) |
226 | 226 | ||
227 | const text2 = 'my super answer to answer of thread 1' | 227 | const text2 = 'my super answer to answer of thread 1' |
228 | await server.commentsCommand.addReply({ videoId: video.id, toCommentId: child.id, text: text2 }) | 228 | await server.comments.addReply({ videoId: video.id, toCommentId: child.id, text: text2 }) |
229 | 229 | ||
230 | const text3 = 'my second answer to thread 1' | 230 | const text3 = 'my second answer to thread 1' |
231 | await server.commentsCommand.addReply({ videoId: video.id, toCommentId: threadId, text: text3 }) | 231 | await server.comments.addReply({ videoId: video.id, toCommentId: threadId, text: text3 }) |
232 | } | 232 | } |
233 | 233 | ||
234 | for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) { | 234 | for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) { |
235 | await server.captionsCommand.createVideoCaption({ | 235 | await server.captions.createVideoCaption({ |
236 | language: caption, | 236 | language: caption, |
237 | videoId: video.id, | 237 | videoId: video.id, |
238 | fixture: 'subtitle-good2.vtt' | 238 | fixture: 'subtitle-good2.vtt' |