Skip to content

Commit 78c9f1d

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/acctest/validate_cassettes_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"strings"
1010
"testing"
1111

12-
"github.com/aws/aws-sdk-go/service/sqs"
12+
"gopkg.in/dnaeon/go-vcr.v3/cassette"
13+
1314
"github.com/stretchr/testify/assert"
1415
"github.com/stretchr/testify/require"
15-
"gopkg.in/dnaeon/go-vcr.v3/cassette"
1616
)
1717

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

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

0 commit comments

Comments
 (0)