]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/videos-filter.ts
Introduce blacklist command
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / videos-filter.ts
index 6b9a4b6d45a8cb895ce78807746c623d2a6de9cd..7428b82c57cc99e8e758026bff7b8d1100ba6ebd 100644 (file)
@@ -15,10 +15,11 @@ import {
 } 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',
@@ -46,13 +47,13 @@ async function getVideosNames (server: ServerInfo, token: string, filter: string
   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)