TestingMock: reset failure tally when clearing captured assertions (X-QA-02)
This commit is contained in:
1 parent
6e636d23e3
commit
898968d7c6
1 file changed
+1
@@ -29,6 +29,7 @@ namespace
|
||||
}
|
||||
// Drop everything we recorded so the test result stays clean.
|
||||
assertions.erase(assertions.begin() + saved, assertions.end());
|
||||
ctx.current_result->failed_assertions = 0;
|
||||
ctx.current_result->state = Void::Testing::TestState::Passed;
|
||||
return messages;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user