]> 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 3f77387842d1455f0441be17043ebc6d2bf4ebb9..bf341c648570d7b3e2857fc1847a539c8ea90e92 100644 (file)
@@ -1,19 +1,16 @@
 /* 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 {
   cleanupTests,
   createMultipleServers,
   doubleFollow,
   PeerTubeServer,
   setAccessTokensToServers,
-  wait,
   waitJobs
-} from '@shared/extra-utils'
-import { VideoPrivacy } from '@shared/models'
-
-const expect = chai.expect
+} from '@shared/server-commands'
 
 function in10Seconds () {
   const now = new Date()
@@ -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: {