Skip to content

Commit

Permalink
fix(mnq): delete sdk-go v1 in validate cassette
Browse files Browse the repository at this point in the history
  • Loading branch information
jremy42 committed Dec 10, 2024
1 parent 9828642 commit 84e1d20
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/acctest/validate_cassettes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"strings"
"testing"

"github.com/aws/aws-sdk-go/service/sqs"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/dnaeon/go-vcr.v3/cassette"
Expand Down Expand Up @@ -77,12 +76,10 @@ func checkErrCodeExcept(i *cassette.Interaction, c *cassette.Cassette, codes ...
if isException {
return isException
}

// SQS returns 400 when the queue does not exist
if strings.Contains(i.Response.Body, sqs.ErrCodeQueueDoesNotExist) && i.Response.Code == 400 {
if strings.Contains(i.Response.Body, "AWS.SimpleQueueService.NonExistentQueue") && i.Response.Code == 400 {
return true
}

if i.Response.Code >= 400 {
for _, httpCode := range codes {
if i.Response.Code == httpCode {
Expand Down

0 comments on commit 84e1d20

Please sign in to comment.