func setup(t *testing.T) { config.LoadDefaults() config.Service.RegistryLocation = "http://localhost:2379" config.ServiceRegistry.CacheRefreshInterval = 1000 database.InitDb() database.SetupDb() //This will cause the registry manager to complain, but we don't //really need the service being registered here. registry.Init("TestAuth", "/database/test/auth") //We need to create a user in order to have any sessions, so registration := user_service.Registration{ NewUser: user, } _, err := um.SetUp(®istration) if err != nil { t.Error(err) } }
func setup() { config.LoadDefaults() database.InitDb() database.SetupDb() }