diff --git a/fivetran/resource_external_logging_test.go b/fivetran/resource_external_logging_test.go index 2222ffa9..9f5b658a 100644 --- a/fivetran/resource_external_logging_test.go +++ b/fivetran/resource_external_logging_test.go @@ -115,7 +115,7 @@ func testFivetranExternalLoggingResourceDestroy(s *terraform.State) error { if err.Error() != "status code: 404; expected: 200" { return err } - if response.Code != "NotFound" { + if !strings.HasPrefix(response.Code, "NotFound") { return errors.New("External Logging " + rs.Primary.ID + " still exists. Response code: " + response.Code) }