Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindiu committed Sep 23, 2020
1 parent 86ff508 commit a491186
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion internal/db/storage/blob/s3/session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a491186

Please sign in to comment.