Index: state/apiserver/common/environmachineswatcher_test.go |
=== modified file 'state/apiserver/common/environmachineswatcher_test.go' |
--- state/apiserver/common/environmachineswatcher_test.go 2014-01-20 17:38:56 +0000 |
+++ state/apiserver/common/environmachineswatcher_test.go 2014-03-03 12:02:05 +0000 |
@@ -4,8 +4,7 @@ |
package common_test |
import ( |
- "fmt" |
- |
+ "github.com/juju/errgo/errors" |
gc "launchpad.net/gocheck" |
"launchpad.net/juju-core/state" |
@@ -50,7 +49,7 @@ |
func (*environMachinesWatcherSuite) TestWatchGetAuthError(c *gc.C) { |
getCanWatch := func() (common.AuthFunc, error) { |
- return nil, fmt.Errorf("pow") |
+ return nil, errors.Newf("pow") |
} |
resources := common.NewResources() |
e := common.NewEnvironMachinesWatcher( |