} from '../../../../shared/extra-utils'
import { Video, VideoPrivacy } from '../../../../shared/models/videos'
import { UserRole } from '../../../../shared/models/users'
+import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
const expect = chai.expect
-async function getVideosNames (server: ServerInfo, token: string, filter: string, statusCodeExpected = 200) {
+async function getVideosNames (server: ServerInfo, token: string, filter: string, statusCodeExpected = HttpStatusCode.OK_200) {
const paths = [
'/api/v1/video-channels/root_channel/videos',
'/api/v1/accounts/root/videos',
return videosResults
}
-describe('Test videos filter validator', function () {
+describe('Test videos filter', function () {
let servers: ServerInfo[]
// ---------------------------------------------------------------
before(async function () {
- this.timeout(120000)
+ this.timeout(160000)
servers = await flushAndRunMultipleServers(2)