66
66
// if the bus fails a couple of times, we're still OK
67
67
func (s *ConnSuite) TestStartRetriesConnect(c *C) {
68
68
endp := testingbus.NewTestingEndpoint(condition.Fail2Work(2), condition.Work(true), uint32(networkmanager.Connecting))
71
71
c.Check(cs.start(), Equals, networkmanager.Connecting)
72
72
c.Check(cs.connAttempts, Equals, uint32(3)) // 1 more than the Fail2Work