Merge pull request #472 from iamqizhao/master
fix some print format errors
This commit is contained in:
@ -101,7 +101,7 @@ func TestPairsMD(t *testing.T) {
|
||||
t.Fatalf("Pairs(%v) = %v, want %v", test.kv, md, test.md)
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ func (p *unicastNamingPicker) processUpdates() error {
|
||||
}
|
||||
p.mu.Unlock()
|
||||
default:
|
||||
grpclog.Println("Unknown update.Op %d", update.Op)
|
||||
grpclog.Println("Unknown update.Op ", update.Op)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
@ -537,7 +537,7 @@ func testEmptyUnaryWithUserAgent(t *testing.T, e env) {
|
||||
}
|
||||
ctx, _ = context.WithTimeout(context.Background(), time.Second)
|
||||
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)
|
||||
var header metadata.MD
|
||||
|
Reference in New Issue
Block a user