client/request_test: use gotest.tools-style asserts

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2025-05-16 19:14:44 +02:00
parent 44f30261da
commit 2e65796c86

View File

@@ -53,7 +53,7 @@ func TestSetHostHeader(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.host, func(t *testing.T) {
hostURL, err := ParseHostURL(tc.host)
assert.Check(t, err)
assert.NilError(t, err)
client := &Client{
client: newMockClient(func(req *http.Request) (*http.Response, error) {
@@ -78,7 +78,7 @@ func TestSetHostHeader(t *testing.T) {
}
_, err = client.sendRequest(context.Background(), http.MethodGet, testEndpoint, nil, nil, nil)
assert.Check(t, err)
assert.NilError(t, err)
})
}
}