change err log output format (#430)

This commit is contained in:
RagingSpud 2022-11-01 22:18:41 +08:00 committed by GitHub
parent 70a9cc68a9
commit f251031837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ func TestRawNodeRestart2AC(t *testing.T) {
} }
rd := rawNode.Ready() rd := rawNode.Ready()
if !reflect.DeepEqual(rd, want) { if !reflect.DeepEqual(rd, want) {
t.Errorf("g = %+v,\n w %+v", rd, want) t.Errorf("g = %#v,\n w %#v", rd, want)
} }
rawNode.Advance(rd) rawNode.Advance(rd)
if rawNode.HasReady() { if rawNode.HasReady() {
@ -242,7 +242,7 @@ func TestRawNodeRestartFromSnapshot2C(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if rd := rawNode.Ready(); !reflect.DeepEqual(rd, want) { if rd := rawNode.Ready(); !reflect.DeepEqual(rd, want) {
t.Errorf("g = %+v,\n w %+v", rd, want) t.Errorf("g = %#v,\n w %#v", rd, want)
} else { } else {
rawNode.Advance(rd) rawNode.Advance(rd)
} }