mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-26 12:50:11 +08:00
change err log output format (#430)
This commit is contained in:
parent
70a9cc68a9
commit
f251031837
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user