mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
simplify probe APIs
This commit is contained in:
@@ -46,8 +46,8 @@ func (s *MySuite) TestProbe(c *C) {
|
||||
|
||||
func (s *MySuite) TestWrappedError(c *C) {
|
||||
_, e := os.Stat("this-file-cannot-exit")
|
||||
es := probe.NewError(e) // *probe.Error
|
||||
e = probe.NewWrappedError(es) // *probe.WrappedError
|
||||
_, ok := probe.ToWrappedError(e)
|
||||
es := probe.NewError(e) // *probe.Error
|
||||
e = probe.WrapError(es) // *probe.WrappedError
|
||||
_, ok := probe.UnwrapError(e)
|
||||
c.Assert(ok, Equals, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user