aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-09-09 09:55:20 +0200
committerChocobozzz <me@florianbigard.com>2021-09-09 09:55:20 +0200
commit8de589b95316bb95ee3626c4749b6963843fb0c0 (patch)
treea0a2e0fa16cee65186246d95d9cfe0d8c896c817
parentafe501a6cd49fe046ac987ac6f8c09f3f730c40a (diff)
downloadPeerTube-8de589b95316bb95ee3626c4749b6963843fb0c0.tar.gz
PeerTube-8de589b95316bb95ee3626c4749b6963843fb0c0.tar.zst
PeerTube-8de589b95316bb95ee3626c4749b6963843fb0c0.zip
Fix tests
-rw-r--r--shared/extra-utils/videos/videos-command.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos-command.ts b/shared/extra-utils/videos/videos-command.ts
index 63980c147..99f56a34c 100644
--- a/shared/extra-utils/videos/videos-command.ts
+++ b/shared/extra-utils/videos/videos-command.ts
@@ -449,7 +449,9 @@ export class VideosCommand extends AbstractCommand {
449 449
450 const result = await this.sendResumableChunks({ ...options, pathUploadId, videoFilePath, size }) 450 const result = await this.sendResumableChunks({ ...options, pathUploadId, videoFilePath, size })
451 451
452 await this.endResumableUpload({ ...options, pathUploadId }) 452 if (result.statusCode === HttpStatusCode.OK_200) {
453 await this.endResumableUpload({ ...options, expectedStatus: HttpStatusCode.NO_CONTENT_204, pathUploadId })
454 }
453 455
454 return result.body?.video || result.body as any 456 return result.body?.video || result.body as any
455 } 457 }