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:
Philippe Laflamme 2020-05-12 20:44:09 -04:00 committed by GitHub
parent f9353e09c5
commit cc2d376a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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