Ensure state is clean even if test fails
What does this MR do and why?
Explanation of the problem can be found at gitlab-org/quality/engineering-productivity/master-broken-incidents#445 (comment 1214455895).
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #386128 (closed)
Edited by Rémy Coutable