rpc/client_test: Make test handle flaky error.

We check for "failed to encode arg" here because sometimes the server detects the
mismatched number of arguments, sends an error response, and closes the connection,
before the client gets through encoding the args. In this case the flow is closed and
encoding of args fails, preventing the client from calling call.Finish, and seeing
the error in the response. In the normal case network time dominates, so this case
will very rarely get hit, but since the client and server in this test are in the
same process we see this race quite a bit.

Addresses vanadium/issues#289

Change-Id: I2fb7648d272c132f3c3a17947bfaba0fd7012861
1 file changed
tree: cef75700221c02d4508e0d2ffddb7f90dd0d67da
  1. cmd/
  2. envvar/
  3. examples/
  4. internal/
  5. lib/
  6. profiles/
  7. services/
  8. test/
  9. .gitignore
  10. AUTHORS
  11. CONTRIBUTORS
  12. LICENSE
  13. PATENTS
  14. README.md
  15. VERSION
README.md

This is the code repository containing a reference implementation of the Vanadium project API.