diff --git a/drpv4/resource_drp_subnet_test.go b/drpv4/resource_drp_subnet_test.go index 3e9dbbe..febb03c 100644 --- a/drpv4/resource_drp_subnet_test.go +++ b/drpv4/resource_drp_subnet_test.go @@ -107,8 +107,13 @@ func TestAccResourceSubnet(t *testing.T) { ExpectNonEmptyPlan: true, ExpectError: regexp.MustCompile("Not Found"), PreConfig: func() { + t.Log("Removing subnet using DRP API to test terraform error handling") client := testAccProvider.Meta().(*Config) - client.session.DeleteModel("subnets", "test1") + r, err := client.session.DeleteModel("subnets", "test1") + if err != nil { + t.Errorf("failed to remove subnet using DRP API: %v", err) + } + t.Logf("got response: %v", r) }, }, },