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.tsindex 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, privatdescribe('Test ActivityPub security', function () {let servers: PeerTubeServer[]- let sqlCommands: SQLCommand[]+ let sqlCommands: SQLCommand[] = []let url: stringdiff --git a/server/tests/api/object-storage/videos.ts b/server/tests/api/object-storage/videos.tsindex 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: stringlet 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.tsindex 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: numberlet threadIdServer2: numberdiff --git a/server/tests/api/videos/video-channel-syncs.ts b/server/tests/api/videos/video-channel-syncs.tsindex 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: Datediff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.tsindex 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: Userlet secondVideoChannelId: numberdiff --git a/server/tests/api/views/videos-views-cleaner.ts b/server/tests/api/views/videos-views-cleaner.tsindex 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: stringlet videoIdServer2: stringdiff --git a/shared/server-commands/videos/streaming-playlists-command.ts b/shared/server-commands/videos/streaming-playlists-command.tsindex 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,