Skip to content

Commit 1c4988e

Browse files
authored
fix: increase upload timeout (#88)
* fix: increase default upload timeout * fix: increase default upload timeout
1 parent 3e03155 commit 1c4988e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

store-cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var RETRY_WAIT_MIN = 100 // ms
2525
var RETRY_WAIT_MAX = 300 // ms
2626

2727
// default http timeout for Upload/Download/Remove operations
28-
var UPLOAD_HTTP_TIMEOUT = 60 // seconds
28+
var UPLOAD_HTTP_TIMEOUT = 150 // seconds
2929
var DOWNLOAD_HTTP_TIMEOUT = 300 // seconds
3030
var REMOVE_HTTP_TIMEOUT = 300 // seconds
3131

store-cli_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func TestGetTimeout(t *testing.T) {
134134
flagTimeout: "",
135135
envName: "SD_STORE_CLI_UPLOAD_HTTP_TIMEOUT",
136136
defaultTimeout: UPLOAD_HTTP_TIMEOUT,
137-
expected: 60,
137+
expected: 150,
138138
envValue: "",
139139
shouldError: false,
140140
},

0 commit comments

Comments
 (0)