(t *testing.T)
| 818 | } |
| 819 | |
| 820 | func (s) TestClientErrorNotify(t *testing.T) { |
| 821 | server, ct, cancel := setUp(t, 0, normal) |
| 822 | defer cancel() |
| 823 | go server.stop() |
| 824 | // ct.reader should detect the error and activate ct.Error(). |
| 825 | <-ct.Error() |
| 826 | ct.Close(fmt.Errorf("closed manually by test")) |
| 827 | } |
| 828 | |
| 829 | func performOneRPC(ct ClientTransport) { |
| 830 | callHdr := &CallHdr{ |