Browse Source

Fix tests

pull/5340/merge
Chocobozzz 2 weeks ago
parent
commit
c106db1413
No known key found for this signature in database GPG Key ID: 583A612D890159BE
7 changed files with 9 additions and 9 deletions
  1. +1
    -1
      server/tests/api/activitypub/security.ts
  2. +1
    -1
      server/tests/api/object-storage/videos.ts
  3. +1
    -1
      server/tests/api/server/handle-down.ts
  4. +1
    -1
      server/tests/api/videos/video-channel-syncs.ts
  5. +1
    -1
      server/tests/api/videos/video-channels.ts
  6. +1
    -1
      server/tests/api/views/videos-views-cleaner.ts
  7. +3
    -3
      shared/server-commands/videos/streaming-playlists-command.ts

+ 1
- 1
server/tests/api/activitypub/security.ts View File

@@ -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



+ 1
- 1
server/tests/api/object-storage/videos.ts View File

@@ -144,7 +144,7 @@ function runTestSuite (options: {
let baseMockUrl: string

let servers: PeerTubeServer[]
let sqlCommands: SQLCommand[]
let sqlCommands: SQLCommand[] = []

let keptUrls: string[] = []



+ 1
- 1
server/tests/api/server/handle-down.ts View File

@@ -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


+ 1
- 1
server/tests/api/videos/video-channel-syncs.ts View File

@@ -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



+ 1
- 1
server/tests/api/videos/video-channels.ts View File

@@ -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


+ 1
- 1
server/tests/api/views/videos-views-cleaner.ts View File

@@ -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


+ 3
- 3
shared/server-commands/videos/streaming-playlists-command.ts View File

@@ -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,


Loading…
Cancel
Save