Skip to content

Commit

Permalink
Fix test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiante committed Nov 5, 2024
1 parent bf05540 commit 8a48648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestHandler(t *testing.T) {
res, err := http.Get(fmt.Sprintf("%s/openapi.yml", testserver.URL))
require.NoError(t, err)
require.Equal(t, http.StatusOK, res.StatusCode)
assert.Equal(t, "application/x-yaml; charset=utf-8", res.Header.Get("Content-Type"))
assert.Equal(t, "application/yaml; charset=utf-8", res.Header.Get("Content-Type"))

body, err := io.ReadAll(res.Body)
require.NoError(t, err)
Expand Down

0 comments on commit 8a48648

Please sign in to comment.