X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-hls.ts;h=218ec08ae6965ee5f1f634902bdc65dea6f14b36;hb=d511df28906f84c7d25ecb24e41515ed549ff276;hp=91124725fa87dca76a4040acd5ba50934c1af90a;hpb=fb72d2e1c24cd4660fd6611ef723c5827c47294c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-hls.ts b/server/tests/api/videos/video-hls.ts index 91124725f..218ec08ae 100644 --- a/server/tests/api/videos/video-hls.ts +++ b/server/tests/api/videos/video-hls.ts @@ -3,26 +3,27 @@ import 'mocha' import * as chai from 'chai' import { basename, join } from 'path' -import { removeFragmentedMP4Ext, uuidRegex } from '@shared/core-utils' import { - areObjectStorageTestsDisabled, checkDirectoryIsEmpty, checkResolutionsInMasterPlaylist, checkSegmentHash, checkTmpIsEmpty, + expectStartWith, + hlsInfohashExist +} from '@server/tests/shared' +import { areObjectStorageTestsDisabled, removeFragmentedMP4Ext, uuidRegex } from '@shared/core-utils' +import { HttpStatusCode, VideoStreamingPlaylistType } from '@shared/models' +import { cleanupTests, createMultipleServers, doubleFollow, - expectStartWith, - hlsInfohashExist, makeRawRequest, ObjectStorageCommand, PeerTubeServer, setAccessTokensToServers, waitJobs, webtorrentAdd -} from '@shared/extra-utils' -import { HttpStatusCode, VideoStreamingPlaylistType } from '@shared/models' +} from '@shared/server-commands' import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants' const expect = chai.expect @@ -243,6 +244,7 @@ describe('Test HLS videos', function () { enabled: true, allowAudioFiles: true, resolutions: { + '144p': false, '240p': true, '360p': true, '480p': true,