~rogpeppe/juju-core/128-jujud-bootstrap-do-not-use-bootstrapped-environment

« back to all changes in this revision

Viewing changes to juju/testing/conn.go

  • Committer: Roger Peppe
  • Date: 2012-10-12 13:51:27 UTC
  • Revision ID: roger.peppe@canonical.com-20121012135127-c80hvzam4xbkc17o
gofmt

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
 
119
119
        if bootstrap {
120
120
                c.Assert(environ.Bootstrap(false), IsNil)
121
 
        
 
121
 
122
122
                conn, err := juju.NewConnFromName("dummyenv")
123
123
                c.Assert(err, IsNil)
124
124
                s.Conn = conn
132
132
 
133
133
func (s *JujuConnSuite) tearDownConn(c *C) {
134
134
        dummy.Reset()
135
 
        if s.Conn  != nil {
 
135
        if s.Conn != nil {
136
136
                c.Assert(s.Conn.Close(), IsNil)
137
137
        }
138
138
        s.Conn = nil