Skip to content

Commit

Permalink
update error check
Browse files Browse the repository at this point in the history
  • Loading branch information
jharley committed Nov 17, 2023
1 parent 4a7973b commit 4605815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion honeycombio/resource_slo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
),
Expand Down
4 changes: 3 additions & 1 deletion internal/provider/burn_alert_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
),
Expand Down

0 comments on commit 4605815

Please sign in to comment.