Skip to content

Commit 84e1d20

Browse files
committed
fix(mnq): delete sdk-go v1 in validate cassette
1 parent 9828642 commit 84e1d20

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/acctest/validate_cassettes_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"strings"
1010
"testing"
1111

12-
"github.com/aws/aws-sdk-go/service/sqs"
1312
"github.com/stretchr/testify/assert"
1413
"github.com/stretchr/testify/require"
1514
"gopkg.in/dnaeon/go-vcr.v3/cassette"
@@ -77,12 +76,10 @@ func checkErrCodeExcept(i *cassette.Interaction, c *cassette.Cassette, codes ...
7776
if isException {
7877
return isException
7978
}
80-
8179
// SQS returns 400 when the queue does not exist
82-
if strings.Contains(i.Response.Body, sqs.ErrCodeQueueDoesNotExist) && i.Response.Code == 400 {
80+
if strings.Contains(i.Response.Body, "AWS.SimpleQueueService.NonExistentQueue") && i.Response.Code == 400 {
8381
return true
8482
}
85-
8683
if i.Response.Code >= 400 {
8784
for _, httpCode := range codes {
8885
if i.Response.Code == httpCode {

0 commit comments

Comments
 (0)