Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
fredmaggiowski committed Jun 30, 2023
1 parent 666fb65 commit 43f4968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/opa_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func TestOPATransportRoundTrip(t *testing.T) {
require.Equal(t, http.StatusInternalServerError, resp.StatusCode)
bodyBytes, err := io.ReadAll(resp.Body)
require.Nil(t, err)
require.Contains(t, string(bodyBytes), "content-type should be application/json")
require.Contains(t, string(bodyBytes), "content-type is not application/json")
})

t.Run("failure on non-json response even with json content-type", func(t *testing.T) {
Expand Down

0 comments on commit 43f4968

Please sign in to comment.