Make API "compare" accept commit IDs (#32801)

This commit is contained in:
wxiaoguang
2024-12-12 16:10:09 +08:00
committed by GitHub
parent 01b1896bf5
commit 22bf2ca6ba
10 changed files with 154 additions and 124 deletions

View File

@ -440,7 +440,7 @@ func DecodeJSON(t testing.TB, resp *httptest.ResponseRecorder, v any) {
t.Helper()
decoder := json.NewDecoder(resp.Body)
assert.NoError(t, decoder.Decode(v))
require.NoError(t, decoder.Decode(v))
}
func VerifyJSONSchema(t testing.TB, resp *httptest.ResponseRecorder, schemaFile string) {