diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-15 23:21:30 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-15 23:21:30 +0800 |
commit | f475a013264b5036dfe9fcc04e21c4112845b9a2 (patch) | |
tree | 03c5347f0abf1b88131a20f55479924f657ae6fb /p2p/peer_test.go | |
parent | 263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9 (diff) | |
parent | 70da79f04c14e562c024e85c6b081b6b4b8e45ec (diff) | |
download | dexon-f475a013264b5036dfe9fcc04e21c4112845b9a2.tar dexon-f475a013264b5036dfe9fcc04e21c4112845b9a2.tar.gz dexon-f475a013264b5036dfe9fcc04e21c4112845b9a2.tar.bz2 dexon-f475a013264b5036dfe9fcc04e21c4112845b9a2.tar.lz dexon-f475a013264b5036dfe9fcc04e21c4112845b9a2.tar.xz dexon-f475a013264b5036dfe9fcc04e21c4112845b9a2.tar.zst dexon-f475a013264b5036dfe9fcc04e21c4112845b9a2.zip |
Merge pull request #1261 from fjl/p2p-no-writes-at-shutdown
p2p: prevent writes at shutdown time
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): |