From 4ac04ae0feba560e93f0fad55772b8830b759d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=BD=AC?= Date: Wed, 17 Jul 2019 19:20:24 +0800 Subject: all: replace fmt.Print* calls with t.Log* in tests (#19670) --- cmd/puppeth/genesis_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/puppeth/genesis_test.go b/cmd/puppeth/genesis_test.go index 83e738360..f128da24f 100644 --- a/cmd/puppeth/genesis_test.go +++ b/cmd/puppeth/genesis_test.go @@ -18,7 +18,6 @@ package main import ( "encoding/json" - "fmt" "io/ioutil" "reflect" "strings" @@ -61,7 +60,7 @@ func TestAlethSturebyConverter(t *testing.T) { got := strings.Split(c.Sdump(spec), "\n") for i := 0; i < len(exp) && i < len(got); i++ { if exp[i] != got[i] { - fmt.Printf("got: %v\nexp: %v\n", exp[i], got[i]) + t.Logf("got: %v\nexp: %v\n", exp[i], got[i]) } } } @@ -102,7 +101,7 @@ func TestParitySturebyConverter(t *testing.T) { got := strings.Split(c.Sdump(spec), "\n") for i := 0; i < len(exp) && i < len(got); i++ { if exp[i] != got[i] { - fmt.Printf("got: %v\nexp: %v\n", exp[i], got[i]) + t.Logf("got: %v\nexp: %v\n", exp[i], got[i]) } } } -- cgit v1.2.3