Skip to content

Commit

Permalink
disable failpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
  • Loading branch information
YangKeao committed Dec 7, 2020
1 parent afe0910 commit 120d40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ var points = mockPoints{m: make(map[string]interface{})}
// On inject a failpoint
func On(fpname string) interface{} {
var ret interface{}
if _, ok := failpoint.Eval(_curpkg_(fpname)); ok {
failpoint.Inject(fpname, func() {
ret = points.get(fpname)
}
})
return ret
}

Expand Down

0 comments on commit 120d40d

Please sign in to comment.