Skip to content

Commit

Permalink
Update resource_external_logging_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-aleksandrboldyrev committed Oct 27, 2023
1 parent 5f9244c commit 351533c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fivetran/resource_external_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ func testFivetranExternalLoggingResourceDestroy(s *terraform.State) error {
}

response, err := client.NewExternalLoggingDetails().ExternalLoggingId(rs.Primary.ID).Do(context.Background())
if err.Error() != "status code: 404; expected: 200" {
return err
}
if response.Code != "NotFound" {
if !strings.HasPrefix(err.Error(), "status code: 404; expected: 200") {

Check failure on line 115 in fivetran/resource_external_logging_test.go

View workflow job for this annotation

GitHub Actions / build

undefined: strings
return err
}
if !strings.HasPrefix(response.Code, "NotFound") {

Check failure on line 118 in fivetran/resource_external_logging_test.go

View workflow job for this annotation

GitHub Actions / build

undefined: strings
return errors.New("External Logging " + rs.Primary.ID + " still exists. Response code: " + response.Code)
}

Expand Down

0 comments on commit 351533c

Please sign in to comment.