diff --git a/internal/pkg/agent/application/gateway/fleet/fleet_gateway_test.go b/internal/pkg/agent/application/gateway/fleet/fleet_gateway_test.go index f672fac1a3a..de40565c0b5 100644 --- a/internal/pkg/agent/application/gateway/fleet/fleet_gateway_test.go +++ b/internal/pkg/agent/application/gateway/fleet/fleet_gateway_test.go @@ -349,6 +349,7 @@ func TestFleetGateway(t *testing.T) { waitFn := ackSeq( client.Answer(func(headers http.Header, body io.Reader) (*http.Response, error) { data, err := io.ReadAll(body) + require.NoError(t, err) var checkinRequest fleetapi.CheckinRequest err = json.Unmarshal(data, &checkinRequest)