diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-10 13:57:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-10 13:57:06 +0200 |
commit | 644391bee644c9078695ab042743d108870de7ef (patch) | |
tree | 5adb7f38a9f5c1f14a6a555982f1f8d4616168ba /shared/server-commands/videos | |
parent | 7590f7a8684c69c38d30dab68377720da16d2420 (diff) | |
download | PeerTube-644391bee644c9078695ab042743d108870de7ef.tar.gz PeerTube-644391bee644c9078695ab042743d108870de7ef.tar.zst PeerTube-644391bee644c9078695ab042743d108870de7ef.zip |
Fix test cleanup
Diffstat (limited to 'shared/server-commands/videos')
-rw-r--r-- | shared/server-commands/videos/streaming-playlists-command.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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({ |