diff options
author | Felix Lange <fjl@twurst.com> | 2015-06-15 20:00:50 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-06-15 21:03:46 +0800 |
commit | 70da79f04c14e562c024e85c6b081b6b4b8e45ec (patch) | |
tree | 3db6b5c72a3f0667230c3475aae342b3ddb431ce /p2p/peer_test.go | |
parent | 8dcbdcad0a92b053c7a5da2dc00b679c0044d050 (diff) | |
download | dexon-70da79f04c14e562c024e85c6b081b6b4b8e45ec.tar.gz dexon-70da79f04c14e562c024e85c6b081b6b4b8e45ec.tar.zst dexon-70da79f04c14e562c024e85c6b081b6b4b8e45ec.zip |
p2p: improve disconnect logging
Diffstat (limited to 'p2p/peer_test.go')
-rw-r--r-- | p2p/peer_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/peer_test.go b/p2p/peer_test.go index 7b772e198..575d0ff79 100644 --- a/p2p/peer_test.go +++ b/p2p/peer_test.go @@ -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): |