Merge pull request #472 from iamqizhao/master

fix some print format errors
This commit is contained in:
Qi Zhao
2015-12-16 12:51:35 -08:00
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ func TestPairsMD(t *testing.T) {
t.Fatalf("Pairs(%v) = %v, want %v", test.kv, md, test.md) t.Fatalf("Pairs(%v) = %v, want %v", test.kv, md, test.md)
} }
if md.Len() != test.size { if md.Len() != test.size {
t.Fatalf("Pairs(%v) generates md of size %d, want %d", md.Len(), test.size) t.Fatalf("Pairs(%v) generates md of size %d, want %d", test.kv, md.Len(), test.size)
} }
} }
} }

View File

@ -172,7 +172,7 @@ func (p *unicastNamingPicker) processUpdates() error {
} }
p.mu.Unlock() p.mu.Unlock()
default: default:
grpclog.Println("Unknown update.Op %d", update.Op) grpclog.Println("Unknown update.Op ", update.Op)
} }
} }
return nil return nil

View File

@ -537,7 +537,7 @@ func testEmptyUnaryWithUserAgent(t *testing.T, e env) {
} }
ctx, _ = context.WithTimeout(context.Background(), time.Second) ctx, _ = context.WithTimeout(context.Background(), time.Second)
if _, err := cc.WaitForStateChange(ctx, grpc.Ready); err == nil { if _, err := cc.WaitForStateChange(ctx, grpc.Ready); err == nil {
t.Fatalf("cc.WaitForStateChange(_, %s) = _, %v, want _, %v", grpc.Ready, context.DeadlineExceeded) t.Fatalf("cc.WaitForStateChange(_, %s) = _, <nil>, want _, %v", grpc.Ready, context.DeadlineExceeded)
} }
tc := testpb.NewTestServiceClient(cc) tc := testpb.NewTestServiceClient(cc)
var header metadata.MD var header metadata.MD