mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
metrics: fix TestExampleOpenTSB on windows
This commit is contained in:
parent
65a17c00c7
commit
f13dd464cc
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,8 @@ func TestExampleOpenTSB(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if have, want := w.String(), string(wantB); have != want {
|
want := strings.ReplaceAll(string(wantB), "\r\n", "\n")
|
||||||
|
if have := w.String(); have != want {
|
||||||
t.Errorf("\nhave:\n%v\nwant:\n%v\n", have, want)
|
t.Errorf("\nhave:\n%v\nwant:\n%v\n", have, want)
|
||||||
t.Logf("have vs want:\n%v", findFirstDiffPos(have, want))
|
t.Logf("have vs want:\n%v", findFirstDiffPos(have, want))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue