Skip to content

chore: soften AssertionError message in live gateway e2e test - #5940

Open
Altamimi-Dev wants to merge 1 commit into
IBM:mainfrom
Altamimi-Dev:5810-soften-e2e-assertion
Open

chore: soften AssertionError message in live gateway e2e test#5940
Altamimi-Dev wants to merge 1 commit into
IBM:mainfrom
Altamimi-Dev:5810-soften-e2e-assertion

Conversation

@Altamimi-Dev

Copy link
Copy Markdown
Contributor

Closes #5810

Summary

The _require_declared_output_schema preflight assert in tests/live_gateway/mcp/test_mcp_protocol_e2e.py failed with prescriptive remediation text (Rebuild the fast_test_server image and restart docker-compose so register_fast_test picks up the new schema fixtures.). That kind of instruction rots — the assertion now reports only the failure itself:

Tool '…' is not registered in the gateway.

The guard's docstring already explains why a stale image or incomplete federation sync causes this, so no diagnostic value is lost. The docstring's "Fails fast with an actionable message" line is updated to match.

Verification

  • File parses and collects cleanly (pytest --collect-only: 22 tests).
  • No remaining Rebuild the fast_test_server references in tests/.
  • The test requires a live gateway stack (tests/live_gateway is excluded from the default make test run by design); the change is assertion-message text only, no behavior.

Closes IBM#5810

The _require_declared_output_schema preflight assert told the reader to
'Rebuild the fast_test_server image and restart docker-compose...' —
prescriptive remediation that goes stale. It now reports only the
assertion failure (which tool is missing); the surrounding docstring
already explains why the guard exists.

Signed-off-by: Ahmad Al Tamimi <altamimi.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE]: Soften AssertionError message in live gateway e2e test

1 participant