etcdserver: replace fmt with t.Logf
This commit is contained in:

committed by
Yicheng Qin

parent
e9bb7c26fa
commit
2a212c9016
@ -1,7 +1,6 @@
|
|||||||
package etcdserver
|
package etcdserver
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@ -24,7 +23,7 @@ func testServer(t *testing.T, ns int64) {
|
|||||||
|
|
||||||
send := func(msgs []raftpb.Message) {
|
send := func(msgs []raftpb.Message) {
|
||||||
for _, m := range msgs {
|
for _, m := range msgs {
|
||||||
fmt.Printf("sending: %+v\n", m)
|
t.Logf("sending: %+v\n", m)
|
||||||
ss[m.To].Node.Step(ctx, m)
|
ss[m.To].Node.Step(ctx, m)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user