Commit ee14e03
test: force connection teardown to catch NAT routing bugs deterministically
Add connection teardown step in test_put_contract_three_hop_returns_response
after PUT completes but before verifying responses. This ensures the test
validates address-based routing rather than relying on existing connections.
Previously the test was flaky because:
- If bidirectional UDP connections remained active, responses could arrive
via existing connections even with incorrect address routing
- Whether the test passed depended on timing/NAT state expiration
Now the test deterministically catches NAT routing bugs like the one fixed
in PR #2243 where responses were routed to internal addresses instead of
external addresses.
Addresses review feedback from @iduartgomez.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 9e3722a commit ee14e03
1 file changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2047 | 2047 | | |
2048 | 2048 | | |
2049 | 2049 | | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
2050 | 2072 | | |
2051 | 2073 | | |
2052 | 2074 | | |
| |||
0 commit comments