aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-10 13:57:06 +0200
committerChocobozzz <me@florianbigard.com>2023-05-10 13:57:06 +0200
commit644391bee644c9078695ab042743d108870de7ef (patch)
tree5adb7f38a9f5c1f14a6a555982f1f8d4616168ba /shared/server-commands
parent7590f7a8684c69c38d30dab68377720da16d2420 (diff)
downloadPeerTube-644391bee644c9078695ab042743d108870de7ef.tar.gz
PeerTube-644391bee644c9078695ab042743d108870de7ef.tar.zst
PeerTube-644391bee644c9078695ab042743d108870de7ef.zip
Fix test cleanup
Diffstat (limited to 'shared/server-commands')
-rw-r--r--shared/server-commands/server/servers-command.ts1
-rw-r--r--shared/server-commands/videos/streaming-playlists-command.ts6
2 files changed, 4 insertions, 3 deletions
diff --git a/shared/server-commands/server/servers-command.ts b/shared/server-commands/server/servers-command.ts
index 19645cb93..f174a2aa0 100644
--- a/shared/server-commands/server/servers-command.ts
+++ b/shared/server-commands/server/servers-command.ts
@@ -44,6 +44,7 @@ export class ServersCommand extends AbstractCommand {
44 44
45 await copy(origin, join('artifacts', destname)) 45 await copy(origin, join('artifacts', destname))
46 } 46 }
47 console.log(this.server.parallel)
47 48
48 if (this.server.parallel) { 49 if (this.server.parallel) {
49 const promise = saveGithubLogsIfNeeded() 50 const promise = saveGithubLogsIfNeeded()
diff --git a/shared/server-commands/videos/streaming-playlists-command.ts b/shared/server-commands/videos/streaming-playlists-command.ts
index 950808b60..e7448aa69 100644
--- a/shared/server-commands/videos/streaming-playlists-command.ts
+++ b/shared/server-commands/videos/streaming-playlists-command.ts
@@ -14,7 +14,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
14 withRetry?: boolean // default false 14 withRetry?: boolean // default false
15 currentRetry?: number 15 currentRetry?: number
16 }): Promise<string> { 16 }): Promise<string> {
17 const { videoFileToken, reinjectVideoFileToken, withRetry, currentRetry = 1 } = options 17 const { videoFileToken, reinjectVideoFileToken, withRetry = false, currentRetry = 1 } = options
18 18
19 try { 19 try {
20 const result = await unwrapTextOrDecode(this.getRawRequest({ 20 const result = await unwrapTextOrDecode(this.getRawRequest({
@@ -51,7 +51,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
51 withRetry?: boolean // default false 51 withRetry?: boolean // default false
52 currentRetry?: number 52 currentRetry?: number
53 }) { 53 }) {
54 const { withRetry, currentRetry = 1 } = options 54 const { withRetry = false, currentRetry = 1 } = options
55 55
56 try { 56 try {
57 const result = await unwrapBody<Buffer>(this.getRawRequest({ 57 const result = await unwrapBody<Buffer>(this.getRawRequest({
@@ -85,7 +85,7 @@ export class StreamingPlaylistsCommand extends AbstractCommand {
85 withRetry?: boolean // default false 85 withRetry?: boolean // default false
86 currentRetry?: number 86 currentRetry?: number
87 }) { 87 }) {
88 const { withRetry, currentRetry = 1 } = options 88 const { withRetry = false, currentRetry = 1 } = options
89 89
90 try { 90 try {
91 const result = await unwrapBodyOrDecodeToJSON<{ [ id: string ]: string }>(this.getRawRequest({ 91 const result = await unwrapBodyOrDecodeToJSON<{ [ id: string ]: string }>(this.getRawRequest({