mirror of https://github.com/grpc/grpc-java.git
interop-testing: adds assertions to empty_stream test case (#7030)
If the server fails (e.g.: with an unimplemented status), the test still succeeds. This change adds assertions to check the status code as well as the expected number of responses.
This commit is contained in:
parent
f9353e09c5
commit
cc2d376a93
|
|
@ -790,6 +790,8 @@ public abstract class AbstractInteropTest {
|
|||
= asyncStub.fullDuplexCall(responseObserver);
|
||||
requestObserver.onCompleted();
|
||||
responseObserver.awaitCompletion(operationTimeoutMillis(), TimeUnit.MILLISECONDS);
|
||||
assertSuccess(responseObserver);
|
||||
assertTrue("Expected an empty stream", responseObserver.getValues().isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Reference in New Issue