From 43f4968c39690c073ef3aa6db3eb3d56dda27d90 Mon Sep 17 00:00:00 2001 From: Federico Maggi Date: Fri, 30 Jun 2023 12:15:34 +0200 Subject: [PATCH] fix: test --- core/opa_transport_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/opa_transport_test.go b/core/opa_transport_test.go index cbf05140..faa1ee87 100644 --- a/core/opa_transport_test.go +++ b/core/opa_transport_test.go @@ -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) {