Skip to content
Snippets Groups Projects
Commit ef25d66e authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

Add ERROR_INJECT_YIELD and ERROR_INJECT_SLEEP helpers

ERROR_INJECT_YIELD yields the current fiber execution by calling
fiber_sleep(0.001) while the given error injection is set.

ERROR_INJECT_SLEEP suspends the current thread execution by calling
usleep(1000) while the given error injection is set.
parent 92321d4c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment