interop: Fix unimplemented method test (#2040)

* Don't send nil requests.

* Fix import name and get rid of condition.

* Let registered encoder deal with nil requests.

* Break encode into encode and compress.
This commit is contained in:
mmukhi
2018-05-02 16:08:12 -07:00
committed by GitHub
parent 7c204fd174
commit 3592bccfd9
8 changed files with 71 additions and 53 deletions

View File

@ -104,7 +104,7 @@ func (h *testStreamHandler) handleStream(t *testing.T, s *transport.Stream) {
}
}
// send a response back to end the stream.
data, err := encode(testCodec{}, &expectedResponse, nil, nil, nil)
data, err := encode(testCodec{}, &expectedResponse, nil)
if err != nil {
t.Errorf("Failed to encode the response: %v", err)
return