Beispiel #1
0
func (s *RegistrySuite) SetUpTest(c *C) {
	var x *config.Config

	x = config.DefaultConfig()
	x.DropletStaleThreshold = 1

	s.Registry = NewRegistry(x)
}
Beispiel #2
0
func (s *RegistrySuite) SetUpTest(c *C) {
	var configObj *config.Config

	configObj = config.DefaultConfig()
	configObj.DropletStaleThreshold = 1

	s.mocksController = gomock.NewController(c)
	s.messageBus = test.NewMockCFMessageBus(s.mocksController)

	s.Registry = NewRegistry(configObj, s.messageBus)
}