Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix tests

Chocobozzzc106db14136f
diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts
index d6a07b87f9..6cf504f6f3 100644
--- a/server/tests/api/activitypub/security.ts
+++ b/server/tests/api/activitypub/security.ts
@@ -71,7 +71,7 @@ async function makeFollowRequest (to: { url: string }, by: { url: string, privat
describe('Test ActivityPub security', function () {
let servers: PeerTubeServer[]
- let sqlCommands: SQLCommand[]
+ let sqlCommands: SQLCommand[] = []
let url: string
diff --git a/server/tests/api/object-storage/videos.ts b/server/tests/api/object-storage/videos.ts
index fe07202947..77bb006784 100644
--- a/server/tests/api/object-storage/videos.ts
+++ b/server/tests/api/object-storage/videos.ts
@@ -144,7 +144,7 @@ function runTestSuite (options: {
let baseMockUrl: string
let servers: PeerTubeServer[]
- let sqlCommands: SQLCommand[]
+ let sqlCommands: SQLCommand[] = []
let keptUrls: string[] = []
diff --git a/server/tests/api/server/handle-down.ts b/server/tests/api/server/handle-down.ts
index 0bbd9ef474..3a73ab1d28 100644
--- a/server/tests/api/server/handle-down.ts
+++ b/server/tests/api/server/handle-down.ts
@@ -16,7 +16,7 @@ import {
describe('Test handle downs', function () {
let servers: PeerTubeServer[] = []
- let sqlCommands: SQLCommand[]
+ let sqlCommands: SQLCommand[] = []
let threadIdServer1: number
let threadIdServer2: number
diff --git a/server/tests/api/videos/video-channel-syncs.ts b/server/tests/api/videos/video-channel-syncs.ts
index 12c2c158ed..7f688c7d6b 100644
--- a/server/tests/api/videos/video-channel-syncs.ts
+++ b/server/tests/api/videos/video-channel-syncs.ts
@@ -23,7 +23,7 @@ describe('Test channel synchronizations', function () {
describe('Sync using ' + mode, function () {
let servers: PeerTubeServer[]
- let sqlCommands: SQLCommand[]
+ let sqlCommands: SQLCommand[] = []
let startTestDate: Date
diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts
index c82ad6f167..8e2b7937c5 100644
--- a/server/tests/api/videos/video-channels.ts
+++ b/server/tests/api/videos/video-channels.ts
@@ -25,7 +25,7 @@ async function findChannel (server: PeerTubeServer, channelId: number) {
describe('Test video channels', function () {
let servers: PeerTubeServer[]
- let sqlCommands: SQLCommand[]
+ let sqlCommands: SQLCommand[] = []
let userInfo: User
let secondVideoChannelId: number
diff --git a/server/tests/api/views/videos-views-cleaner.ts b/server/tests/api/views/videos-views-cleaner.ts
index fce2d538cb..a84cd43c7c 100644
--- a/server/tests/api/views/videos-views-cleaner.ts
+++ b/server/tests/api/views/videos-views-cleaner.ts
@@ -15,7 +15,7 @@ import {
describe('Test video views cleaner', function () {
let servers: PeerTubeServer[]
- let sqlCommands: SQLCommand[]
+ let sqlCommands: SQLCommand[] = []
let videoIdServer1: string
let videoIdServer2: string
diff --git a/shared/server-commands/videos/streaming-playlists-command.ts b/shared/server-commands/videos/streaming-playlists-command.ts
index e7448aa69a..f4bdb34ed9 100644
--- a/shared/server-commands/videos/streaming-playlists-command.ts
+++ b/shared/server-commands/videos/streaming-playlists-command.ts
@@ -33,7 +33,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
} catch (err) {
if (!withRetry || currentRetry > 5) throw err
- await wait(100)
+ await wait(250)
return this.get({
...options,
@@ -68,7 +68,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
} catch (err) {
if (!withRetry || currentRetry > 5) throw err
- await wait(100)
+ await wait(250)
return this.getFragmentedSegment({
...options,
@@ -101,7 +101,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
} catch (err) {
if (!withRetry || currentRetry > 5) throw err
- await wait(100)
+ await wait(250)
return this.getSegmentSha256({
...options,