Skip to content

Commit fdd7343

Browse files
committed
revert
1 parent c5a4228 commit fdd7343

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scaleway/validate_cassettes_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ func TestAccScalewayCassettes_Validator(t *testing.T) {
4444

4545
func checkErrorCode(c *cassette.Cassette) error {
4646
for _, i := range c.Interactions {
47-
isGoodErrorCode := checkErrCodeExcept(i, c, http.StatusNotFound, http.StatusTooManyRequests, http.StatusForbidden)
48-
49-
if !isGoodErrorCode && !isTransientStateError(i) {
47+
if !checkErrCodeExcept(i, c, http.StatusNotFound, http.StatusTooManyRequests, http.StatusForbidden) &&
48+
!isTransientStateError(i) {
5049
return fmt.Errorf("status: %v found on %s. method: %s, url %s\nrequest body = %v\nresponse body = %v", i.Code, c.Name, i.Request.Method, i.Request.URL, i.Request.Body, i.Response.Body)
5150
}
5251
}

0 commit comments

Comments
 (0)