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

Unified Diff: state/api/uniter/unit_test.go

Issue 62230043: state/..., worker/..., utils/...: use errgo
Patch Set: 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/api/uniter/unit.go ('k') | state/api/uniter/uniter.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/api/uniter/unit_test.go
=== modified file 'state/api/uniter/unit_test.go'
--- state/api/uniter/unit_test.go 2013-09-27 15:40:55 +0000
+++ state/api/uniter/unit_test.go 2014-02-10 21:25:17 +0000
@@ -4,6 +4,7 @@
package uniter_test
import (
+ errgo "launchpad.net/errgo/errors"
gc "launchpad.net/gocheck"
"launchpad.net/juju-core/charm"
@@ -267,7 +268,7 @@
// Now check the same through the API.
_, err := s.apiUnit.CharmURL()
- c.Assert(err, gc.Equals, uniter.ErrNoCharmURLSet)
+ c.Assert(errgo.Diagnosis(err), gc.Equals, uniter.ErrNoCharmURLSet)
err = s.apiUnit.SetCharmURL(s.wordpressCharm.URL())
c.Assert(err, gc.IsNil)
« no previous file with comments | « state/api/uniter/unit.go ('k') | state/api/uniter/uniter.go » ('j') | no next file with comments »

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