diff --git a/internal/db/storage/blob/s3/session/session_test.go b/internal/db/storage/blob/s3/session/session_test.go index b902f7bb3c7..f3c4b02b9ec 100644 --- a/internal/db/storage/blob/s3/session/session_test.go +++ b/internal/db/storage/blob/s3/session/session_test.go @@ -122,7 +122,30 @@ func TestNew(t *testing.T) { }, }, { - name: "return and log session when set option error", + name: "return session with option", + args: args{ + opts: []Option{ + WithMaxRetries(5), + }, + }, + want: want{ + want: &sess{ + maxRetries: 5, + forcePathStyle: false, + useAccelerate: false, + useARNRegion: false, + useDualStack: false, + enableSSL: true, + enableParamValidation: true, + enable100Continue: true, + enableContentMD5Validation: true, + enableEndpointDiscovery: false, + enableEndpointHostPrefix: true, + }, + }, + }, + { + name: "return default option and logging session error when set option error", args: args{ opts: []Option{ func(s *sess) error {