Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(522)

Unified Diff: state/apiserver/common/environmachineswatcher_test.go

Issue 70770043: all: use errgo instead of fmt.Errorf
Patch Set: all: use errgo instead of fmt.Errorf Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/apiserver/common/environmachineswatcher.go ('k') | state/apiserver/common/environwatcher_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « state/apiserver/common/environmachineswatcher.go ('k') | state/apiserver/common/environwatcher_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b