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

Unified Diff: worker/instancepoller/aggregate_test.go

Issue 93410043: Extract errors package to github.com/juju/errors
Patch Set: Created 9 years, 10 months 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
Index: worker/instancepoller/aggregate_test.go
=== modified file 'worker/instancepoller/aggregate_test.go'
--- worker/instancepoller/aggregate_test.go 2014-04-15 18:51:24 +0000
+++ worker/instancepoller/aggregate_test.go 2014-05-13 06:12:51 +0000
@@ -9,11 +9,11 @@
"sync/atomic"
"time"
+ "github.com/juju/errors"
jc "github.com/juju/testing/checkers"
gc "launchpad.net/gocheck"
"launchpad.net/juju-core/environs"
- "launchpad.net/juju-core/errors"
"launchpad.net/juju-core/instance"
"launchpad.net/juju-core/testing/testbase"
)
@@ -163,7 +163,8 @@
aggregator := newAggregator(testGetter)
_, err := aggregator.instanceInfo("foo")
- c.Assert(err, gc.DeepEquals, errors.NotFoundf("instance foo"))
+ c.Assert(err, gc.ErrorMatches, "instance foo not found")
+ c.Assert(err, jc.Satisfies, errors.IsNotFound)
}
func (s *aggregateSuite) TestAddressesError(c *gc.C) {

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