]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/video-schedule-update.ts
Fix tests
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / video-schedule-update.ts
index 00b4f6cbc7c60aa46a5411459ed574548c5f9ee4..bf341c648570d7b3e2857fc1847a539c8ea90e92 100644 (file)
@@ -1,7 +1,6 @@
 /* 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 { VideoPrivacy } from '@shared/models'
 import {
@@ -13,8 +12,6 @@ import {
   waitJobs
 } from '@shared/server-commands'
 
-const expect = chai.expect
-
 function in10Seconds () {
   const now = new Date()
   now.setSeconds(now.getSeconds() + 10)
@@ -38,8 +35,6 @@ describe('Test video update scheduler', function () {
   })
 
   it('Should upload a video and schedule an update in 10 seconds', async function () {
-    this.timeout(10000)
-
     const attributes = {
       name: 'video 1',
       privacy: VideoPrivacy.PRIVATE,
@@ -92,8 +87,6 @@ describe('Test video update scheduler', function () {
   })
 
   it('Should upload a video without scheduling an update', async function () {
-    this.timeout(10000)
-
     const attributes = {
       name: 'video 2',
       privacy: VideoPrivacy.PRIVATE
@@ -106,8 +99,6 @@ describe('Test video update scheduler', function () {
   })
 
   it('Should update a video by scheduling an update', async function () {
-    this.timeout(10000)
-
     const attributes = {
       name: 'video 2 updated',
       scheduleUpdate: {