diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-14 23:15:51 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-14 23:15:51 +0800 |
commit | 90b94e64fcdc6a2099ec5c48e41acf7f95a6b804 (patch) | |
tree | f8b7c0336f69aa3c66560a57dc9e172eb81418e8 /p2p/testlog_test.go | |
parent | ff87c241a715833fa09cbed5e4acf0f1dfa9b745 (diff) | |
parent | d2f119cf9b30a7568b5ebe7c290c3be30dc0f2de (diff) | |
download | go-tangerine-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar go-tangerine-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.gz go-tangerine-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.bz2 go-tangerine-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.lz go-tangerine-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.xz go-tangerine-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.tar.zst go-tangerine-90b94e64fcdc6a2099ec5c48e41acf7f95a6b804.zip |
Merge pull request #971 from fjl/p2p-limit-tweaks
p2p: tweak connection limits
Diffstat (limited to 'p2p/testlog_test.go')
-rw-r--r-- | p2p/testlog_test.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/p2p/testlog_test.go b/p2p/testlog_test.go deleted file mode 100644 index ac973bcf5..000000000 --- a/p2p/testlog_test.go +++ /dev/null @@ -1,25 +0,0 @@ -package p2p - -import ( - "testing" - - "github.com/ethereum/go-ethereum/logger" -) - -type testLogger struct{ t *testing.T } - -func testlog(t *testing.T) testLogger { - logger.Reset() - l := testLogger{t} - logger.AddLogSystem(l) - return l -} - -func (l testLogger) LogPrint(msg logger.LogMsg) { - l.t.Logf("%s", msg.String()) -} - -func (testLogger) detach() { - logger.Flush() - logger.Reset() -} |