INNER CODE UNIT · Go

func

go-chassis/go-chassis · bootstrap/bootstrap_test.go:35

func (b *bootstrapPlugin) Init() error {
	success[b.Name] = true
	return nil
}

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",
	})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…