-
Notifications
You must be signed in to change notification settings - Fork 710
Closed
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.
Description
Hi, I'm struggling to understand the mocking example upon https://github.com/aws/aws-sdk-go-v2/tree/master/example/service/sqs/mockingClientsForTests
https://s.natalian.org/2018-02-06/mocking.mp4
Version of AWS SDK for Go?
Version of Go (go version
)?
go version go1.9.3 linux/amd64
What issue did you see?
? command-line-arguments [no test files]
Steps to reproduce
go test -tags example ifaceExample.go
from the README.md
Furthermore I tried to create a mocked example myself, but it still seems to dial out (it doesn't work whilst offline).
caused by: Get https://s3-ap-southeast-1.amazonaws.com/: dial tcp: lookup s3-ap-southeast-1.amazonaws.com: no such host
Is it because of the cfg?
- main.go http://play.golang.org/p/GE13V9V2wUx
- main_test.go http://play.golang.org/p/G4XhuTL33Ic
Perhaps you can suggest how to handle the config here so all the functions can access it without any hoop jumping?
Metadata
Metadata
Assignees
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.