Skip to content

Commit

Permalink
test fix for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Nov 23, 2023
1 parent 360a7e4 commit 124df4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion policy/api/v1/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ func TestHTTPClient_Authorized(t *testing.T) {
response, err := client.Authorized(ctx, "http://test.test", request)

require.Error(t, err)
assert.EqualError(t, err, "failed to call endpoint: Post \"http://test.test/authorized\": dial tcp: lookup test.test: no such host")
// CI has a slightly different error: lookup test.test vs lookup test.test on 127.0.0.x
assert.ErrorContains(t, err, "failed to call endpoint: Post \"http://test.test/authorized\": dial tcp: lookup test.test")
assert.ErrorContains(t, err, "no such host")
assert.False(t, response)
})
}
Expand Down

0 comments on commit 124df4f

Please sign in to comment.