Skip to content

Commit

Permalink
Enable CreateIncident where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jirikuncar committed Nov 17, 2020
1 parent f8aebfe commit 15a00e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/api/v2/datadog/scenarios_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ func team(t gobdd.StepTest, ctx gobdd.Context) {
tests.GetData(ctx)["team"] = response
}
func deleteIncident(ctx context.Context, incidentID string) {
_, err := Client(ctx).IncidentsApi.DeleteIncident(ctx, incidentID).Execute()
client := Client(ctx)
client.GetConfig().SetUnstableOperationEnabled("DeleteIncident", true)

_, err := client.IncidentsApi.DeleteIncident(ctx, incidentID).Execute()
if err == nil {
return
}
Expand Down

0 comments on commit 15a00e7

Please sign in to comment.