Skip to content

Commit 69f8e84

Browse files
committed
unite test, fix on the NewSQSAdaptor call
1 parent 295e039 commit 69f8e84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

queue/sqsadaptor_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ import (
44
"fmt"
55
"testing"
66

7+
"github.com/aws/aws-sdk-go/aws"
78
"github.com/stretchr/testify/assert"
89
)
910

1011
func init() {
1112
}
1213

1314
func TestAdaptorConstruction(t *testing.T) {
14-
testsqs := NewSQSAdaptor("testqueue")
15+
config := aws.NewConfig().WithRegion("somewhere")
16+
testsqs := NewSQSAdaptor(config, "testqueue")
1517
assert.Equal(t, testsqs.QueueURL, "testqueue")
1618
}
1719

0 commit comments

Comments
 (0)