-
Notifications
You must be signed in to change notification settings - Fork 989
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not reuse transports that have been shut down
* raft_test.go: do not reuse transports which have been shutdown (see testRaft_SnapshotRestore etc.) * Make InmemTransport optionally take a specified address. This is to provide compatibility with the other transports. It's necessary on other Loopback transports as sometimes we Close() a transport, but then wish to recreate a new peer. As the transport has been Close()d we can't reuse the same transport with the new peer, so we need to create a fresh transport with a specified address (being the address of the old disconnected peer). This is in any case a better test. Signed-off-by: Alex Bligh <alex@alex.org.uk>
- Loading branch information
Showing
4 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters