135
138
lst0, err := net.Listen("tcp", "127.0.0.1:0")
138
DevicesRunner(lst0, func(conn net.Conn) error { return nil }, BootLogger, &testDevicesParsedConfig)
141
DevicesRunner(lst0, func(conn net.Conn) error { return nil }, BootLogger, resource, &testDevicesParsedConfig)
139
142
c.Assert(s.lst, Not(IsNil))
140
143
c.Check(s.lst.Addr().String(), Equals, lst0.Addr().String())