Skip to content

← All questions

A cleanup DELETE returned 404 and the scenario still passed — is that intended?

Asked 2,680 views2 answers

We register cleanups the way the guide shows:

gherkin
Given I register cleanup DELETE "/posts/{{postId}}"

The records are not being deleted. Looking at the run detail, the cleanup ran and the request 404'd, and the scenario is green.

Two things I would like to understand. Why does a failed cleanup not fail the scenario — I can see arguments both ways. And is there something that would have told me, short of noticing the sandbox filling up three weeks later?

asked by Zeynep Arslan64 ·

2 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related