1
0
Fork 0

Unit test commit query params

master
Philip O'Toole 7 months ago
parent a48f48e55a
commit 1641eb5bde

@ -33,6 +33,7 @@ func Test_NewQueryParams(t *testing.T) {
{"Invalid URL Encoding", "invalid=%ZZ", nil, true},
{"freshness_strict", "&freshness=5s&freshness_strict", QueryParams{"freshness_strict": "", "freshness": "5s"}, false},
{"freshness_strict requires freshness", "freshness_strict", nil, true},
{"commit with timeout", "commit&timeout=2s", QueryParams{"commit": "", "timeout": "2s"}, false},
}
for _, tc := range testCases {

Loading…
Cancel
Save