mirror of https://github.com/grpc/grpc.git
Call object's `.cancelled()` is not guaranteed to immediately return True per spec even if `cancel()` is called. `.code()` ensures that the RPC is terminated before we check for `.cancelled()` to ensure our test is not stricter than necessary (a conforming implementation should be allowed to return `False` on `cancelled()` for a bit due to a race or something. This change makes the test more generically applicable to other implementations.pull/21865/head
parent
343e77ab9e
commit
9bdd529077
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue