~rogpeppe/juju-core/315-api-dialopts

« back to all changes in this revision

Viewing changes to state/apiserver/server_test.go

  • Committer: Roger Peppe
  • Date: 2013-05-25 13:11:46 UTC
  • Revision ID: roger.peppe@canonical.com-20130525131146-knkj6367hnnmapq4
api: add DialOpts to Open

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        "time"
15
15
)
16
16
 
 
17
var fastDialOpts = api.DialOpts{}
 
18
 
17
19
func (s *suite) TestServerStopsOutstandingWatchMethod(c *C) {
18
20
        // Start our own instance of the server so we have
19
21
        // a handle on it to stop it.
33
35
                Password: "password",
34
36
                Addrs:    []string{srv.Addr()},
35
37
                CACert:   []byte(coretesting.CACert),
36
 
        })
 
38
        }, fastDialOpts)
37
39
        c.Assert(err, IsNil)
38
40
        defer st.Close()
39
41
 
101
103
                Password: "password",
102
104
                Addrs:    []string{srv.Addr()},
103
105
                CACert:   []byte(coretesting.CACert),
104
 
        })
 
106
        }, fastDialOpts)
105
107
        c.Assert(err, IsNil)
106
108
        defer st.Close()
107
109