]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/logs.ts
Fix missing delete cascade video -> channel
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / logs.ts
index c458789b6c89e06249bf2f9d9d622e2e3fe14cf0..bc398ea731ac04bd8479fa1114703edb62c11a91 100644 (file)
@@ -1,11 +1,19 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
-import * as chai from 'chai'
 import 'mocha'
-import { cleanupTests, flushAndRunServer, killallServers, makeGetRequest, makePingRequest, reRunServer, ServerInfo, setAccessTokensToServers } from '../../../../shared/extra-utils/index'
+import * as chai from 'chai'
+import {
+  cleanupTests,
+  flushAndRunServer,
+  killallServers,
+  makePingRequest,
+  reRunServer,
+  ServerInfo,
+  setAccessTokensToServers
+} from '../../../../shared/extra-utils/index'
+import { getAuditLogs, getLogs } from '../../../../shared/extra-utils/logs/logs'
 import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
 import { uploadVideo } from '../../../../shared/extra-utils/videos/videos'
-import { getAuditLogs, getLogs } from '../../../../shared/extra-utils/logs/logs'
 
 const expect = chai.expect
 
@@ -22,7 +30,7 @@ describe('Test logs', function () {
   describe('With the standard log file', function () {
 
     it('Should get logs with a start date', async function () {
-      this.timeout(10000)
+      this.timeout(20000)
 
       await uploadVideo(server.url, server.accessToken, { name: 'video 1' })
       await waitJobs([ server ])
@@ -40,7 +48,7 @@ describe('Test logs', function () {
     })
 
     it('Should get logs with an end date', async function () {
-      this.timeout(20000)
+      this.timeout(30000)
 
       await uploadVideo(server.url, server.accessToken, { name: 'video 3' })
       await waitJobs([ server ])
@@ -64,7 +72,7 @@ describe('Test logs', function () {
     })
 
     it('Should get filter by level', async function () {
-      this.timeout(10000)
+      this.timeout(20000)
 
       const now = new Date()
 
@@ -87,6 +95,8 @@ describe('Test logs', function () {
     })
 
     it('Should log ping requests', async function () {
+      this.timeout(10000)
+
       const now = new Date()
 
       await makePingRequest(server)
@@ -117,7 +127,7 @@ describe('Test logs', function () {
 
   describe('With the audit log', function () {
     it('Should get logs with a start date', async function () {
-      this.timeout(10000)
+      this.timeout(20000)
 
       await uploadVideo(server.url, server.accessToken, { name: 'video 7' })
       await waitJobs([ server ])
@@ -143,7 +153,7 @@ describe('Test logs', function () {
     })
 
     it('Should get logs with an end date', async function () {
-      this.timeout(20000)
+      this.timeout(30000)
 
       await uploadVideo(server.url, server.accessToken, { name: 'video 9' })
       await waitJobs([ server ])