Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the InmemTransport.timeout field configurable
The NewInmemTransportWithTimeout contructor supports specifying a custom RPC timeout for an InmemTransport instance. This timeout appears to be the only non-configurable one when creating test-oriented Raft instances (i.e. using the in-memory version of the various dependencies). All other timeouts can be set using Config. Being able to tweak this timeout is useful when running tests on machines under relatively high load, where a low timeout might produce spurious errors.
- Loading branch information