Use a MockRestClient
in storage/tests/error_injection_integration_test
#14428
Labels
api: storage
Issues related to the Cloud Storage API.
type: cleanup
An internal cleanup or hygiene concern.
This test does some low-level black magic to force a specific type of socket error.
RestClient
tests,RestClient
and assume it works.Even if we decided to "move" these tests: it seems better to assume libcurl works, and just returns the right error code. If we want to make sure our wrappers work when libcurl returns the error codes corresponding to socket errors then (as libcurl cannot be easily mocked) we can use the testbench to force the error type we want.
The text was updated successfully, but these errors were encountered: