minor fixes

This commit is contained in:
Laurent Caumont 2025-05-20 17:51:42 +02:00
parent 6ee7307a73
commit c1fa092ad1
2 changed files with 2 additions and 2 deletions

View File

@ -744,7 +744,7 @@ func TestBindingBSON(t *testing.T) {
testBodyBinding(t,
BSON, "bson",
"/", "/",
string(data), string(data[1:]))
string(data), string(data[1:])) //note: for badbody, we remove first byte
}
func TestValidationFails(t *testing.T) {

View File

@ -371,7 +371,7 @@ func TestRenderBSON(t *testing.T) {
err = (BSON{data}).Render(w)
require.NoError(t, err)
assert.Equal(t, string(bsonData), w.Body.String())
assert.Equal(t, bsonData, w.Body.Bytes())
assert.Equal(t, "application/bson", w.Header().Get("Content-Type"))
}