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

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related