# What does kyverno test do when an actual policy result doesn't match the expected one?

Kyverno, Easy (Beginner), Testing. https://k8wiz.com/uquiz/what-does-kyverno-test-do-when-an-actual-policy-result-doesnt-match-the-expected-one

- A. It exits with a non-zero status
- B. It exits with status 0 and a warning
- C. It rewrites the expected result to match
- D. It retries the test until the results match

**Answer:** It exits with a non-zero status

**Explanation:** The CLI marks the mismatched row as failed, prints a summary with the failure count and returns an error, so the process exits non-zero. That's what lets a CI job fail when a policy change breaks an expected result. It never changes the test file.
