mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Update vendored deps, including AWS SDK, openpgp, ftp, ...
This commit is contained in:
+9
-5
@@ -5,8 +5,6 @@ package sqs_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/awstesting/unit"
|
||||
"github.com/aws/aws-sdk-go/service/sqs"
|
||||
@@ -24,7 +22,13 @@ func TestFlattenedTraits(t *testing.T) {
|
||||
},
|
||||
})
|
||||
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, "InvalidAddress", err.Code())
|
||||
assert.Equal(t, "The address QUEUE is not valid for this endpoint.", err.Message())
|
||||
if err == nil {
|
||||
t.Fatalf("expect error, got nil")
|
||||
}
|
||||
if e, a := "InvalidAddress", err.Code(); e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := "The address QUEUE is not valid for this endpoint.", err.Message(); e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user