aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-10 16:23:55 +0200
committerChocobozzz <me@florianbigard.com>2023-05-10 16:23:55 +0200
commitc106db14136f1701a8b1eab8d7152395225e55e4 (patch)
tree7a44b5e62bfbf572195a568128334c05adc9480d
parentc17a55fbca5f1cbe0fbf7aac6b862eb47d01cb4f (diff)
downloadPeerTube-c106db14136f1701a8b1eab8d7152395225e55e4.tar.gz
PeerTube-c106db14136f1701a8b1eab8d7152395225e55e4.tar.zst
PeerTube-c106db14136f1701a8b1eab8d7152395225e55e4.zip
Fix tests
-rw-r--r--server/tests/api/activitypub/security.ts2
-rw-r--r--server/tests/api/object-storage/videos.ts2
-rw-r--r--server/tests/api/server/handle-down.ts2
-rw-r--r--server/tests/api/videos/video-channel-syncs.ts2
-rw-r--r--server/tests/api/videos/video-channels.ts2
-rw-r--r--server/tests/api/views/videos-views-cleaner.ts2
-rw-r--r--shared/server-commands/videos/streaming-playlists-command.ts6
7 files changed, 9 insertions, 9 deletions
diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts
index d6a07b87f..6cf504f6f 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
71 71
72describe('Test ActivityPub security', function () { 72describe('Test ActivityPub security', function () {
73 let servers: PeerTubeServer[] 73 let servers: PeerTubeServer[]
74 let sqlCommands: SQLCommand[] 74 let sqlCommands: SQLCommand[] = []
75 75
76 let url: string 76 let url: string
77 77
diff --git a/server/tests/api/object-storage/videos.ts b/server/tests/api/object-storage/videos.ts
index fe0720294..77bb00678 100644
--- a/server/tests/api/object-storage/videos.ts
+++ b/server/tests/api/object-storage/videos.ts
@@ -144,7 +144,7 @@ function runTestSuite (options: {
144 let baseMockUrl: string 144 let baseMockUrl: string
145 145
146 let servers: PeerTubeServer[] 146 let servers: PeerTubeServer[]
147 let sqlCommands: SQLCommand[] 147 let sqlCommands: SQLCommand[] = []
148 148
149 let keptUrls: string[] = [] 149 let keptUrls: string[] = []
150 150
diff --git a/server/tests/api/server/handle-down.ts b/server/tests/api/server/handle-down.ts
index 0bbd9ef47..3a73ab1d2 100644
--- a/server/tests/api/server/handle-down.ts
+++ b/server/tests/api/server/handle-down.ts
@@ -16,7 +16,7 @@ import {
16 16
17describe('Test handle downs', function () { 17describe('Test handle downs', function () {
18 let servers: PeerTubeServer[] = [] 18 let servers: PeerTubeServer[] = []
19 let sqlCommands: SQLCommand[] 19 let sqlCommands: SQLCommand[] = []
20 20
21 let threadIdServer1: number 21 let threadIdServer1: number
22 let threadIdServer2: number 22 let threadIdServer2: number
diff --git a/server/tests/api/videos/video-channel-syncs.ts b/server/tests/api/videos/video-channel-syncs.ts
index 12c2c158e..7f688c7d6 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 () {
23 23
24 describe('Sync using ' + mode, function () { 24 describe('Sync using ' + mode, function () {
25 let servers: PeerTubeServer[] 25 let servers: PeerTubeServer[]
26 let sqlCommands: SQLCommand[] 26 let sqlCommands: SQLCommand[] = []
27 27
28 let startTestDate: Date 28 let startTestDate: Date
29 29
diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts
index c82ad6f16..8e2b7937c 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) {
25 25
26describe('Test video channels', function () { 26describe('Test video channels', function () {
27 let servers: PeerTubeServer[] 27 let servers: PeerTubeServer[]
28 let sqlCommands: SQLCommand[] 28 let sqlCommands: SQLCommand[] = []
29 29
30 let userInfo: User 30 let userInfo: User
31 let secondVideoChannelId: number 31 let secondVideoChannelId: number
diff --git a/server/tests/api/views/videos-views-cleaner.ts b/server/tests/api/views/videos-views-cleaner.ts
index fce2d538c..a84cd43c7 100644
--- a/server/tests/api/views/videos-views-cleaner.ts
+++ b/server/tests/api/views/videos-views-cleaner.ts
@@ -15,7 +15,7 @@ import {
15 15
16describe('Test video views cleaner', function () { 16describe('Test video views cleaner', function () {
17 let servers: PeerTubeServer[] 17 let servers: PeerTubeServer[]
18 let sqlCommands: SQLCommand[] 18 let sqlCommands: SQLCommand[] = []
19 19
20 let videoIdServer1: string 20 let videoIdServer1: string
21 let videoIdServer2: string 21 let videoIdServer2: string
diff --git a/shared/server-commands/videos/streaming-playlists-command.ts b/shared/server-commands/videos/streaming-playlists-command.ts
index e7448aa69..f4bdb34ed 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 {
33 } catch (err) { 33 } catch (err) {
34 if (!withRetry || currentRetry > 5) throw err 34 if (!withRetry || currentRetry > 5) throw err
35 35
36 await wait(100) 36 await wait(250)
37 37
38 return this.get({ 38 return this.get({
39 ...options, 39 ...options,
@@ -68,7 +68,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
68 } catch (err) { 68 } catch (err) {
69 if (!withRetry || currentRetry > 5) throw err 69 if (!withRetry || currentRetry > 5) throw err
70 70
71 await wait(100) 71 await wait(250)
72 72
73 return this.getFragmentedSegment({ 73 return this.getFragmentedSegment({
74 ...options, 74 ...options,
@@ -101,7 +101,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
101 } catch (err) { 101 } catch (err) {
102 if (!withRetry || currentRetry > 5) throw err 102 if (!withRetry || currentRetry > 5) throw err
103 103
104 await wait(100) 104 await wait(250)
105 105
106 return this.getSegmentSha256({ 106 return this.getSegmentSha256({
107 ...options, 107 ...options,