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

« back to all changes in this revision

Viewing changes to cmd/jujud/machine_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:
267
267
        conf.APIPort = port
268
268
}
269
269
 
 
270
var fastDialOpts = api.DialOpts{}
 
271
 
270
272
func (s *MachineSuite) TestServeAPI(c *C) {
271
273
        stm, conf, _ := s.primeAgent(c, state.JobServeAPI)
272
274
        addAPIInfo(conf, stm)
278
280
                done <- a.Run(nil)
279
281
        }()
280
282
 
281
 
        st, err := api.Open(conf.APIInfo)
 
283
        st, err := api.Open(conf.APIInfo, fastDialOpts)
282
284
        c.Assert(err, IsNil)
283
285
        defer st.Close()
284
286