mirror of https://github.com/Chocobozzz/PeerTube
Fix tests
parent
c17a55fbca
commit
c106db1413
|
@ -71,7 +71,7 @@ async function makeFollowRequest (to: { url: string }, by: { url: string, privat
|
||||||
|
|
||||||
describe('Test ActivityPub security', function () {
|
describe('Test ActivityPub security', function () {
|
||||||
let servers: PeerTubeServer[]
|
let servers: PeerTubeServer[]
|
||||||
let sqlCommands: SQLCommand[]
|
let sqlCommands: SQLCommand[] = []
|
||||||
|
|
||||||
let url: string
|
let url: string
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ function runTestSuite (options: {
|
||||||
let baseMockUrl: string
|
let baseMockUrl: string
|
||||||
|
|
||||||
let servers: PeerTubeServer[]
|
let servers: PeerTubeServer[]
|
||||||
let sqlCommands: SQLCommand[]
|
let sqlCommands: SQLCommand[] = []
|
||||||
|
|
||||||
let keptUrls: string[] = []
|
let keptUrls: string[] = []
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {
|
||||||
|
|
||||||
describe('Test handle downs', function () {
|
describe('Test handle downs', function () {
|
||||||
let servers: PeerTubeServer[] = []
|
let servers: PeerTubeServer[] = []
|
||||||
let sqlCommands: SQLCommand[]
|
let sqlCommands: SQLCommand[] = []
|
||||||
|
|
||||||
let threadIdServer1: number
|
let threadIdServer1: number
|
||||||
let threadIdServer2: number
|
let threadIdServer2: number
|
||||||
|
|
|
@ -23,7 +23,7 @@ describe('Test channel synchronizations', function () {
|
||||||
|
|
||||||
describe('Sync using ' + mode, function () {
|
describe('Sync using ' + mode, function () {
|
||||||
let servers: PeerTubeServer[]
|
let servers: PeerTubeServer[]
|
||||||
let sqlCommands: SQLCommand[]
|
let sqlCommands: SQLCommand[] = []
|
||||||
|
|
||||||
let startTestDate: Date
|
let startTestDate: Date
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ async function findChannel (server: PeerTubeServer, channelId: number) {
|
||||||
|
|
||||||
describe('Test video channels', function () {
|
describe('Test video channels', function () {
|
||||||
let servers: PeerTubeServer[]
|
let servers: PeerTubeServer[]
|
||||||
let sqlCommands: SQLCommand[]
|
let sqlCommands: SQLCommand[] = []
|
||||||
|
|
||||||
let userInfo: User
|
let userInfo: User
|
||||||
let secondVideoChannelId: number
|
let secondVideoChannelId: number
|
||||||
|
|
|
@ -15,7 +15,7 @@ import {
|
||||||
|
|
||||||
describe('Test video views cleaner', function () {
|
describe('Test video views cleaner', function () {
|
||||||
let servers: PeerTubeServer[]
|
let servers: PeerTubeServer[]
|
||||||
let sqlCommands: SQLCommand[]
|
let sqlCommands: SQLCommand[] = []
|
||||||
|
|
||||||
let videoIdServer1: string
|
let videoIdServer1: string
|
||||||
let videoIdServer2: string
|
let videoIdServer2: string
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!withRetry || currentRetry > 5) throw err
|
if (!withRetry || currentRetry > 5) throw err
|
||||||
|
|
||||||
await wait(100)
|
await wait(250)
|
||||||
|
|
||||||
return this.get({
|
return this.get({
|
||||||
...options,
|
...options,
|
||||||
|
@ -68,7 +68,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!withRetry || currentRetry > 5) throw err
|
if (!withRetry || currentRetry > 5) throw err
|
||||||
|
|
||||||
await wait(100)
|
await wait(250)
|
||||||
|
|
||||||
return this.getFragmentedSegment({
|
return this.getFragmentedSegment({
|
||||||
...options,
|
...options,
|
||||||
|
@ -101,7 +101,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!withRetry || currentRetry > 5) throw err
|
if (!withRetry || currentRetry > 5) throw err
|
||||||
|
|
||||||
await wait(100)
|
await wait(250)
|
||||||
|
|
||||||
return this.getSegmentSha256({
|
return this.getSegmentSha256({
|
||||||
...options,
|
...options,
|
||||||
|
|
Loading…
Reference in New Issue