]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/views/video-views-counter.ts
Allow admins to disable two factor auth
[github/Chocobozzz/PeerTube.git] / server / tests / api / views / video-views-counter.ts
index b8969d52dbca9c0a0628d760cecca3974205731b..ca33ff9cd395965b4766de7c0d251edf678c87cf 100644 (file)
@@ -1,14 +1,11 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
 import { FfmpegCommand } from 'fluent-ffmpeg'
 import { prepareViewsServers, prepareViewsVideos, processViewsBuffer } from '@server/tests/shared'
 import { wait } from '@shared/core-utils'
 import { cleanupTests, PeerTubeServer, stopFfmpeg, waitJobs } from '@shared/server-commands'
 
-const expect = chai.expect
-
 describe('Test video views/viewers counters', function () {
   let servers: PeerTubeServer[]
 
@@ -34,7 +31,7 @@ describe('Test video views/viewers counters', function () {
     let videoUUID: string
 
     before(async function () {
-      this.timeout(30000)
+      this.timeout(120000)
 
       const { uuid } = await servers[0].videos.quickUpload({ name: 'video' })
       videoUUID = uuid