Fix tests

This commit is contained in:
Chocobozzz
2021-09-09 09:55:20 +02:00
parent afe501a6cd
commit 8de589b953

View File

@@ -449,7 +449,9 @@ export class VideosCommand extends AbstractCommand {
const result = await this.sendResumableChunks({ ...options, pathUploadId, videoFilePath, size })
await this.endResumableUpload({ ...options, pathUploadId })
if (result.statusCode === HttpStatusCode.OK_200) {
await this.endResumableUpload({ ...options, expectedStatus: HttpStatusCode.NO_CONTENT_204, pathUploadId })
}
return result.body?.video || result.body as any
}