Browse Source

etcdserver: replace fmt with t.Logf

Blake Mizerany 11 years ago
parent
commit
2a212c9016
1 changed files with 1 additions and 2 deletions
  1. 1 2
      etcdserver2/server_test.go

+ 1 - 2
etcdserver2/server_test.go

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