aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/benchmark.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts
index 0cadb36d9..fcfc67bf7 100644
--- a/scripts/benchmark.ts
+++ b/scripts/benchmark.ts
@@ -5,7 +5,6 @@ import * as autocannon from 'autocannon'
5import { 5import {
6 addVideoCommentReply, 6 addVideoCommentReply,
7 addVideoCommentThread, 7 addVideoCommentThread,
8 createVideoCaption,
9 flushAndRunServer, 8 flushAndRunServer,
10 getVideosList, 9 getVideosList,
11 killallServers, 10 killallServers,
@@ -244,9 +243,7 @@ async function prepare () {
244 } 243 }
245 244
246 for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) { 245 for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) {
247 await createVideoCaption({ 246 await server.captionsCommand.createVideoCaption({
248 url: server.url,
249 accessToken: server.accessToken,
250 language: caption, 247 language: caption,
251 videoId: video.id, 248 videoId: video.id,
252 fixture: 'subtitle-good2.vtt' 249 fixture: 'subtitle-good2.vtt'