From accc61b97ee226bca40a9cb98653cc101bdd75c7 Mon Sep 17 00:00:00 2001 From: Aleksandr Boldyrev Date: Wed, 1 Nov 2023 17:06:36 +0100 Subject: [PATCH] Update resource_external_logging_test.go --- fivetran/resource_external_logging_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }