From 0c30eff7e1ae882f0a45ed3cd22210d8eca8d239 Mon Sep 17 00:00:00 2001 From: Shitaibin Date: Wed, 5 Jun 2019 12:53:41 +0800 Subject: [PATCH] p2p/discv5: replace fmt.* to t.* in tests. fmt.Printf -> t.Logf --- p2p/discv5/sim_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/discv5/sim_test.go b/p2p/discv5/sim_test.go index 543faecd48..76379452a5 100644 --- a/p2p/discv5/sim_test.go +++ b/p2p/discv5/sim_test.go @@ -50,7 +50,7 @@ func TestSimRandomResolve(t *testing.T) { if err := net.SetFallbackNodes([]*Node{bootnode.Self()}); err != nil { panic(err) } - fmt.Printf("launched @ %v: %x\n", time.Now(), net.Self().ID[:16]) + t.Logf("launched @ %v: %x\n", time.Now(), net.Self().ID[:16]) } }()