interop-testing: timeoutOnSleepingServer should check that RPC finished (#4766)

If the RPC did not finish, then the remaining checks are red herrings.
This commit is contained in:
zpencer 2018-08-16 15:03:41 -07:00 committed by GitHub
parent c3c810f5c3
commit d1146e2015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1604,7 +1604,7 @@ public abstract class AbstractInteropTest {
// This can happen if the stream has already been terminated due to deadline exceeded.
}
responseObserver.awaitCompletion(operationTimeoutMillis(), TimeUnit.MILLISECONDS);
assertTrue(responseObserver.awaitCompletion(operationTimeoutMillis(), TimeUnit.MILLISECONDS));
assertEquals(0, responseObserver.getValues().size());
assertEquals(Status.DEADLINE_EXCEEDED.getCode(),
Status.fromThrowable(responseObserver.getError()).getCode());