mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/downloader: replace fmt.Printf to b.Logf in tests.
This commit is contained in:
parent
b315fa938d
commit
97c470433d
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue