Skip to content

Commit

Permalink
update s3manager testing to use renamed EndpointResolverOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Oct 23, 2020
1 parent 7bbbcd9 commit 89ad0e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion feature/s3/manager/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.15
require (
github.com/aws/aws-sdk-go-v2 v0.27.1-0.20201023174233-0e7290159289
github.com/aws/aws-sdk-go-v2/config v0.2.0
github.com/aws/aws-sdk-go-v2/service/s3 v0.27.0
github.com/aws/aws-sdk-go-v2/service/s3 v0.27.1-0.20201023181536-7bbbcd9d77cf
github.com/awslabs/smithy-go v0.2.1-0.20201022201941-77c3d28fb123
github.com/google/go-cmp v0.4.1
)
Expand Down
4 changes: 2 additions & 2 deletions feature/s3/manager/internal/testing/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
)

// EndpointResolverFunc is a mock s3 endpoint resolver that wraps the given function
type EndpointResolverFunc func(region string, options s3.ResolverOptions) (aws.Endpoint, error)
type EndpointResolverFunc func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error)

// ResolveEndpoint returns the results from the wrapped function.
func (m EndpointResolverFunc) ResolveEndpoint(region string, options s3.ResolverOptions) (aws.Endpoint, error) {
func (m EndpointResolverFunc) ResolveEndpoint(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error) {
return m(region, options)
}

0 comments on commit 89ad0e2

Please sign in to comment.