diff options
author | 大彬 <hz_stb@163.com> | 2019-07-17 19:20:24 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2019-07-17 19:20:24 +0800 |
commit | 4ac04ae0feba560e93f0fad55772b8830b759d1b (patch) | |
tree | e3c966a6f538f7e7d4e4a9af9c35aad5386bd546 /cmd | |
parent | 8f80cafa108cf0a762e0e34a6a4cd04021139bd1 (diff) | |
download | go-tangerine-4ac04ae0feba560e93f0fad55772b8830b759d1b.tar go-tangerine-4ac04ae0feba560e93f0fad55772b8830b759d1b.tar.gz go-tangerine-4ac04ae0feba560e93f0fad55772b8830b759d1b.tar.bz2 go-tangerine-4ac04ae0feba560e93f0fad55772b8830b759d1b.tar.lz go-tangerine-4ac04ae0feba560e93f0fad55772b8830b759d1b.tar.xz go-tangerine-4ac04ae0feba560e93f0fad55772b8830b759d1b.tar.zst go-tangerine-4ac04ae0feba560e93f0fad55772b8830b759d1b.zip |
all: replace fmt.Print* calls with t.Log* in tests (#19670)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/puppeth/genesis_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
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]) } } } |