p2p: improve disconnect logging

This commit is contained in:
Felix Lange
2015-06-15 14:00:50 +02:00
parent 8dcbdcad0a
commit 70da79f04c
2 changed files with 7 additions and 6 deletions

View File

@ -121,7 +121,7 @@ func TestPeerDisconnect(t *testing.T) {
}
select {
case reason := <-disc:
if reason != DiscQuitting {
if reason != DiscRequested {
t.Errorf("run returned wrong reason: got %v, want %v", reason, DiscRequested)
}
case <-time.After(500 * time.Millisecond):