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

Unified Diff: state/conn_test.go

Issue 8266043: state: connect less times in tests.
Patch Set: state: connect less times in tests. Created 12 years 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 | « [revision details] ('k') | state/export_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/conn_test.go
=== modified file 'state/conn_test.go'
--- state/conn_test.go 2013-04-02 04:52:41 +0000
+++ state/conn_test.go 2013-04-02 17:07:53 +0000
@@ -40,11 +40,7 @@
func (cs *ConnSuite) SetUpTest(c *C) {
cs.LoggingSuite.SetUpTest(c)
cs.MgoSuite.SetUpTest(c)
- var err error
- cs.State, err = state.Open(state.TestingStateInfo(), state.TestingDialOpts())
- c.Assert(err, IsNil)
-
- state.TestingInitialize(c, nil)
+ cs.State = state.TestingInitialize(c, nil)
cs.annotations = cs.MgoSuite.Session.DB("juju").C("annotations")
cs.charms = cs.MgoSuite.Session.DB("juju").C("charms")
cs.machines = cs.MgoSuite.Session.DB("juju").C("machines")
« no previous file with comments | « [revision details] ('k') | state/export_test.go » ('j') | no next file with comments »

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