Remove global custom config path variables, use get/set methods instead

This commit is contained in:
Harshavardhana
2015-07-14 11:55:28 -07:00
parent 893782ffab
commit da8b9fd112
8 changed files with 38 additions and 55 deletions

View File

@@ -51,7 +51,7 @@ func (s *MyAPIDonutCacheSuite) SetUpSuite(c *C) {
conf := &donut.Config{}
conf.Version = "0.0.1"
conf.MaxSize = 100000
donut.CustomConfigPath = filepath.Join(root, "donut.json")
donut.SetDonutConfigPath(filepath.Join(root, "donut.json"))
err = donut.SaveConfig(conf)
c.Assert(err, IsNil)