INNER CODE UNIT · Go
TestBootstrap
go-chassis/go-chassis · bootstrap/bootstrap_test.go:40
func TestBootstrap(t *testing.T) {
initialize(t)
config.Init()
time.Sleep(1 * time.Second)
config.GlobalDefinition = &model.GlobalCfg{}
config.MicroserviceDefinition = &model.ServiceSpec{}
config.GlobalDefinition.ServiceComb.Registry.APIVersion.Version = "v2"
t.Log("Test bootstrap.go")
lager.Init(&lager.Options{
LoggerLevel: "INFO",
})
success = make(map[string]bool)
plugin1 := &bootstrapPlugin{Name: "plugin1"}
plugin2 := &bootstrapPlugin{Name: "plugin2"}
plugin3 := bootstrap.Func(func() error {