Skip to content

Commit

Permalink
test fix for remote builder
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Nov 21, 2023
1 parent 6008f49 commit e4cb0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions policy/api/v1/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ func TestHTTPClient_Authorized(t *testing.T) {
handler := http2.Handler{StatusCode: http.StatusOK}
_, client := testServerAndClient(t, &handler)

response, err := client.Authorized(ctx, "http://::1:1", request)
response, err := client.Authorized(ctx, "http://test.test", request)

require.Error(t, err)
assert.EqualError(t, err, "failed to call endpoint: Post \"http://::1:1/authorized\": dial tcp [::1]:1: connect: connection refused")
assert.EqualError(t, err, "failed to call endpoint: Post \"http://test.test/authorized\": dial tcp: lookup test.test: no such host")
assert.False(t, response)
})
}
Expand Down

0 comments on commit e4cb0d8

Please sign in to comment.