SetDeadline for authEnc. Stop peer if Add fails

This commit is contained in:
Ethan Buchman
2017-04-10 15:59:32 -04:00
parent 8bb3a2e1d7
commit a9bb6734e7
3 changed files with 9 additions and 2 deletions

View File

@ -260,7 +260,7 @@ func TestSwitchStopsNonPersistentPeerOnError(t *testing.T) {
assert.False(peer.IsRunning())
}
func TestSwitchReconnectsToPeerIfItIsPersistent(t *testing.T) {
func TestSwitchReconnectsToPersistentPeer(t *testing.T) {
assert, require := assert.New(t), require.New(t)
sw := makeSwitch(1, "testing", "123.123.123", initSwitchFunc)