[PATCH 1/6] Add ERROR_INJECT_YIELD and ERROR_INJECT_SLEEP helpers

Vladimir Davydov vdavydov.dev at gmail.com
Thu Jul 4 18:50:53 MSK 2019


On Wed, Jul 03, 2019 at 10:12:57PM +0300, Konstantin Osipov wrote:
> * Vladimir Davydov <vdavydov.dev at gmail.com> [19/07/01 10:04]:
> > ERROR_INJECT_YIELD yields the current fiber execution by calling
> > fiber_sleep(0) while the given error injection is set.
> 
> I would sleep for some minimal non-zero time, e.g. a millisecond,
> to avoid consuming CPU in parallel tests.

Done and pushed to master.



More information about the Tarantool-patches mailing list