Fix tests

pull/5817/head
Chocobozzz 2023-05-10 16:23:55 +02:00
parent c17a55fbca
commit c106db1413
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
7 changed files with 9 additions and 9 deletions

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

View File

@ -144,7 +144,7 @@ function runTestSuite (options: {
let baseMockUrl: string
let servers: PeerTubeServer[]
let sqlCommands: SQLCommand[]
let sqlCommands: SQLCommand[] = []
let keptUrls: string[] = []

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

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

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

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

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,