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

Unified Diff: state/apiserver/pinger_test.go

Issue 13640043: cmd/jujud: avoid using allFatal
Patch Set: cmd/jujud: avoid using allFatal Created 11 years, 7 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
« no previous file with comments | « state/api/apiclient.go ('k') | state/state.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/apiserver/pinger_test.go
=== modified file 'state/apiserver/pinger_test.go'
--- state/apiserver/pinger_test.go 2013-09-05 07:46:17 +0000
+++ state/apiserver/pinger_test.go 2013-09-10 09:34:36 +0000
@@ -9,6 +9,7 @@
gc "launchpad.net/gocheck"
"launchpad.net/juju-core/juju/testing"
+ "launchpad.net/juju-core/rpc"
"launchpad.net/juju-core/state/api"
)
@@ -48,3 +49,14 @@
return
}
}
+
+func (s *stateSuite) TestPing(c *gc.C) {
+ st, _ := s.OpenAPIAsNewMachine(c)
+ defer st.Close()
+ err := st.Ping()
+ c.Assert(err, gc.IsNil)
+ err = st.Close()
+ c.Assert(err, gc.IsNil)
+ err = st.Ping()
+ c.Assert(err, gc.Equals, rpc.ErrShutdown)
+}
« no previous file with comments | « state/api/apiclient.go ('k') | state/state.go » ('j') | no next file with comments »

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