diff --git a/honeycombio/resource_slo_test.go b/honeycombio/resource_slo_test.go index d58304cb..106e48ac 100644 --- a/honeycombio/resource_slo_test.go +++ b/honeycombio/resource_slo_test.go @@ -54,7 +54,9 @@ func TestAccHoneycombioSLO_RecreateOnNotFound(t *testing.T) { func(_ *terraform.State) error { // the final 'check' deletes the SLO directly via the API leaving it behind in the state err := testAccClient(t).SLOs.Delete(context.Background(), dataset, slo.ID) - require.NoError(t, err) + if err != nil { + return fmt.Errorf("failed to delete SLO: %w", err) + } return nil }, ), diff --git a/internal/provider/burn_alert_resource_test.go b/internal/provider/burn_alert_resource_test.go index c71feb29..9bd023e6 100644 --- a/internal/provider/burn_alert_resource_test.go +++ b/internal/provider/burn_alert_resource_test.go @@ -390,7 +390,9 @@ func TestAcc_BurnAlertResource_RecreateOnNotFound(t *testing.T) { func(_ *terraform.State) error { // the final 'check' deletes the Burn Alert directly via the API leaving it behind in the state err := testAccClient(t).BurnAlerts.Delete(context.Background(), dataset, burnAlert.ID) - require.NoError(t, err) + if err != nil { + return fmt.Errorf("failed to delete Burn Alert: %w", err) + } return nil }, ),