Closed sleepymole closed 2 years ago
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a recipe for reproducing the error.
f := func(g func() error) {} f(func() error { failpoint.Inject("XXX", func() { failpoint.Return(errors.New("mock error")) }) return nil })
What did you expect to see? After enabled failpoint,failpoint.Inject can be changed to failpoint.Eval.
failpoint.Inject
failpoint.Eval
What did you see instead?
Nothing changed
Versions of the failpoint
failpoint-ctl -V
v0.0.0-20200702092429-9f69995143ce
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a recipe for reproducing the error.
What did you expect to see? After enabled failpoint,
failpoint.Inject
can be changed tofailpoint.Eval
.What did you see instead?
Nothing changed
Versions of the failpoint
failpoint-ctl -V
): The version comes from tidb's go.mod