mirror of https://github.com/grpc/grpc-java.git
core: add test for complete() without close() exception in AbstractServerStream. Fixes #615
This commit is contained in:
parent
0021e063f2
commit
53cd333531
|
|
@ -95,6 +95,16 @@ public class AbstractServerStreamTest {
|
|||
verify(streamListener, times(0)).messageRead(any(InputStream.class));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for issue https://github.com/grpc/grpc-java/issues/615
|
||||
*/
|
||||
@Test
|
||||
public void completeWithoutClose() {
|
||||
stream.transportState().setListener(new ServerStreamListenerBase());
|
||||
// Test that it doesn't throw an exception
|
||||
stream.transportState().complete();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setListener_setOnlyOnce() {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue