(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func (s) TestBlockingPickTimeout(t *testing.T) { |
| 70 | bp := newPickerWrapper() |
| 71 | ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond) |
| 72 | defer cancel() |
| 73 | if _, err := bp.pick(ctx, true, balancer.PickInfo{}); status.Code(err) != codes.DeadlineExceeded { |
| 74 | t.Errorf("bp.pick returned error %v, want DeadlineExceeded", err) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func (s) TestBlockingPick(t *testing.T) { |
| 79 | bp := newPickerWrapper() |
nothing calls this directly
no test coverage detected