]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/videos-history.ts
Fix tests
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / videos-history.ts
index b1b3ff10a565bd18e880b7b86b13b32d1f20b719..6df26ab7dcbb547fb39e1f8665e43d46bd6531c3 100644 (file)
@@ -1,13 +1,10 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
 import { wait } from '@shared/core-utils'
 import { Video } from '@shared/models'
 import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 
-const expect = chai.expect
-
 describe('Test videos history', function () {
   let server: PeerTubeServer = null
   let video1Id: number
@@ -18,14 +15,14 @@ describe('Test videos history', function () {
   let userAccessToken: string
 
   before(async function () {
-    this.timeout(30000)
+    this.timeout(120000)
 
     server = await createSingleServer(1)
 
     await setAccessTokensToServers([ server ])
 
     // 10 seconds long
-    const fixture = 'video_59fps.mp4'
+    const fixture = 'video_short1.webm'
 
     {
       const { id, uuid } = await server.videos.upload({ attributes: { name: 'video 1', fixture } })