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 78c9f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/acctest/validate_cassettes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"strings"
"testing"

"github.com/aws/aws-sdk-go/service/sqs"
"gopkg.in/dnaeon/go-vcr.v3/cassette"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/dnaeon/go-vcr.v3/cassette"
)

func exceptionsCassettesCases() map[string]struct{} {
Expand Down Expand Up @@ -79,7 +79,7 @@ func checkErrCodeExcept(i *cassette.Interaction, c *cassette.Cassette, codes ...
}

// 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
}

Expand Down

0 comments on commit 78c9f1d

Please sign in to comment.