Skip to content

Commit

Permalink
make sure headers have unique keys
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jan 24, 2024
1 parent b563a2d commit 3933d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion property_tests/arbitraries/http/headers_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export function HttpHeadersArb() {

const HeaderArb = fc.tuple(HeaderNameArb, HeaderValueArb);

return fc.array(HeaderArb);
return fc.uniqueArray(HeaderArb, { selector: ([name, _]) => name });
}

0 comments on commit 3933d89

Please sign in to comment.