aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-06-15 20:00:50 +0800
committerFelix Lange <fjl@twurst.com>2015-06-15 21:03:46 +0800
commit70da79f04c14e562c024e85c6b081b6b4b8e45ec (patch)
tree3db6b5c72a3f0667230c3475aae342b3ddb431ce /p2p/peer_test.go
parent8dcbdcad0a92b053c7a5da2dc00b679c0044d050 (diff)
downloadgo-tangerine-70da79f04c14e562c024e85c6b081b6b4b8e45ec.tar
go-tangerine-70da79f04c14e562c024e85c6b081b6b4b8e45ec.tar.gz
go-tangerine-70da79f04c14e562c024e85c6b081b6b4b8e45ec.tar.bz2
go-tangerine-70da79f04c14e562c024e85c6b081b6b4b8e45ec.tar.lz
go-tangerine-70da79f04c14e562c024e85c6b081b6b4b8e45ec.tar.xz
go-tangerine-70da79f04c14e562c024e85c6b081b6b4b8e45ec.tar.zst
go-tangerine-70da79f04c14e562c024e85c6b081b6b4b8e45ec.zip
p2p: improve disconnect logging
Diffstat (limited to 'p2p/peer_test.go')
-rw-r--r--p2p/peer_test.go2
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):