Make vary-3-order isolate header order#176
Conversation
The test reordered headers but also changed Bar's value, so the value mismatch (not the ordering) forced not_cached and order-independence was never exercised. Send the stored values in a different order and expect reuse, so an order-sensitive cache would fail to match. Closes #170 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ReviewI reviewed the diff against Correctness:
|
Fixes #170:
vary-3-orderclaimed to test matching "regardless of header order" but reordered the headers and changedBar's value (abcdevs storedabc). The value mismatch alone forcednot_cached, so ordering was never exercised — it was effectively a duplicate ofvary-3-no-match.This converts it into a real order-independence test: the request sends the stored values (
Foo:1, Bar:abc, Baz:789) in a different order and expects reuse (cached). A cache that did order-sensitive secondary-key comparison would fail to match.Design note / alternative: I chose to make this a positive order-independence test (expected
cached,kind: optimal, renamed). The alternative would be to keep it a no-match test and simply drop the "regardless of header order" framing from the name — but that would leave it redundant withvary-3-no-match. Happy to switch to the conservative wording-only fix if preferred.Closes #170
🤖 This PR was generated by an AI agent (Claude Code) under human supervision, as part of a maintainer-directed review of the test suite.