From 97c470433d75789646798d73926547a1c3e5cfa6 Mon Sep 17 00:00:00 2001 From: Shitaibin Date: Wed, 5 Jun 2019 12:58:15 +0800 Subject: [PATCH] eth/downloader: replace fmt.Printf to b.Logf in tests. --- eth/downloader/downloader_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index 5b56ff161a..c559434e77 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -1620,8 +1620,8 @@ func TestRemoteHeaderRequestSpan(t *testing.T) { if failed { res := strings.Replace(fmt.Sprint(data), " ", ",", -1) exp := strings.Replace(fmt.Sprint(tt.expected), " ", ",", -1) - fmt.Printf("got: %v\n", res) - fmt.Printf("exp: %v\n", exp) + t.Logf("got: %v\n", res) + t.Logf("exp: %v\n", exp) t.Errorf("test %d: wrong values", i) } }