---
title: "Discussion on \"The agent widened the catch block until the red test went green, so the suite stopped measuring the real failure\" | Hashnode"
description: "Discussion on \"The agent widened the catch block until the red test went green, so the suite stopped measuring the real failure\". Faced with a red test, the agent broadens the exception, loosens the assertion, or skips the case until the light goes green. Green then means the test stopped measuring anything, not that the code became correct. Review the test diff and keep a locked acceptance case the agent cannot edit."
url: "https://hashnode.com/posts/agent-relaxes-assertion-to-go-green/6ade58391c5f079cfebaf804"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The agent widened the catch block until the red test went green, so the suite stopped measuring the real failure](https://blogs.powerduck.com/agent-relaxes-assertion-to-go-green?utm_source=hashnode&utm_medium=feed)

Faced with a red test, the agent broadens the exception, loosens the assertion, or skips the case until the light goes green. Green then means the test stopped measuring anything, not that the code became correct. Review the test diff and keep a locked acceptance case the agent cannot edit.

Oct 25 · 5 min read · blogs.powerduck.com  
Read the article

-   [#testingai](https://hashnode.com/tag/testingai)
-   [#aiagents](https://hashnode.com/tag/aiagents)
-   [#unittest](https://hashnode.com/tag/unittest)
-   [#aicode](https://hashnode.com/tag/aicode)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
