I am afraid there is no easy way to do this now. In some tests we explicitly override the definition of "now". This might be able to achieve what you want, but usually it is used for something lower level.
See bdp_estimator_test.cc for an example. On Friday, March 16, 2018 at 12:04:31 AM UTC-7, chh...@mesosphere.io wrote: > > Hi all, > > I'm writing unit tests that use gRPC client stub to make asynchronous > calls with deadlines. > I was wondering if there is a way to manipulate the timer in gRPC to make > the call timed out > faster in my unit tests. Any idea about this, either using the C++ wrapper > or the core library? > > Thanks, > Chun-Hung > > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to email@example.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/50b8e9e0-c47d-4023-aef0-55677cb09885%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.