eth/downloader: replace fmt.Printf to b.Logf in tests.

This commit is contained in:
Shitaibin 2019-06-05 12:58:15 +08:00
parent b315fa938d
commit 97c470433d

View file

@ -1620,8 +1620,8 @@ func TestRemoteHeaderRequestSpan(t *testing.T) {
if failed { if failed {
res := strings.Replace(fmt.Sprint(data), " ", ",", -1) res := strings.Replace(fmt.Sprint(data), " ", ",", -1)
exp := strings.Replace(fmt.Sprint(tt.expected), " ", ",", -1) exp := strings.Replace(fmt.Sprint(tt.expected), " ", ",", -1)
fmt.Printf("got: %v\n", res) t.Logf("got: %v\n", res)
fmt.Printf("exp: %v\n", exp) t.Logf("exp: %v\n", exp)
t.Errorf("test %d: wrong values", i) t.Errorf("test %d: wrong values", i)
} }
} }