Comparing the error_code directly causes test issues on some OSes. See asio_wrapper.h for the details.