tikv / fail-rs

Fail points for rust
Apache License 2.0
338 stars 40 forks source link

Add callback for fail-rs #50

Closed Little-Wallace closed 4 years ago

Little-Wallace commented 4 years ago

Signed-off-by: Little-Wallace bupt2013211450@gmail.com

I want to add a new kind of action for fail-rs, which can help TiKV be able to stop at some statement and call one callback function that set by tests. This feature will help use more convenient to deal with some tests which need to wait for a while, because we can pass a callback to fail_point to notify test-thread to avoid waiting.

yiwu-arbug commented 4 years ago

Awesome!