})
it('Should succeed with the correct parameters', async function () {
- this.timeout(10000)
+ this.timeout(30000)
const fields = baseCorrectParams
import { areMockObjectStorageTestsDisabled } from '@shared/core-utils'
import { HttpStatusCode, LiveVideoCreate, VideoPrivacy } from '@shared/models'
import {
+ cleanupTests,
createMultipleServers,
doubleFollow,
findExternalSavedVideo,
- killallServers,
makeRawRequest,
ObjectStorageCommand,
PeerTubeServer,
after(async function () {
await sqlCommandServer1.cleanup()
- await killallServers(servers)
+ await cleanupTests(servers)
})
})
import { areMockObjectStorageTestsDisabled } from '@shared/core-utils'
import { HttpStatusCode, VideoPrivacy } from '@shared/models'
import {
+ cleanupTests,
createSingleServer,
- killallServers,
makeRawRequest,
ObjectStorageCommand,
PeerTubeServer,
})
after(async function () {
- await killallServers([ server ])
+ await cleanupTests([ server ])
})
})
})
after(async function () {
- await killallServers([ server ])
+ await cleanupTests([ server ])
})
})
import { areHttpImportTestsDisabled } from '@shared/core-utils'
import { VideoChannelSyncState, VideoInclude, VideoPrivacy } from '@shared/models'
import {
+ cleanupTests,
createMultipleServers,
getServerImportConfig,
- killallServers,
PeerTubeServer,
setAccessTokensToServers,
setDefaultAccountAvatar,
await sqlCommand.cleanup()
}
- await killallServers(servers)
+ await cleanupTests(servers)
})
})
}
await copy(origin, join('artifacts', destname))
}
+ console.log(this.server.parallel)
if (this.server.parallel) {
const promise = saveGithubLogsIfNeeded()
withRetry?: boolean // default false
currentRetry?: number
}): Promise<string> {
- const { videoFileToken, reinjectVideoFileToken, withRetry, currentRetry = 1 } = options
+ const { videoFileToken, reinjectVideoFileToken, withRetry = false, currentRetry = 1 } = options
try {
const result = await unwrapTextOrDecode(this.getRawRequest({
withRetry?: boolean // default false
currentRetry?: number
}) {
- const { withRetry, currentRetry = 1 } = options
+ const { withRetry = false, currentRetry = 1 } = options
try {
const result = await unwrapBody<Buffer>(this.getRawRequest({
withRetry?: boolean // default false
currentRetry?: number
}) {
- const { withRetry, currentRetry = 1 } = options
+ const { withRetry = false, currentRetry = 1 } = options
try {
const result = await unwrapBodyOrDecodeToJSON<{ [ id: string ]: string }>(this.getRawRequest({