Remove globalQuiet and globalConfigDir global variables (#3830)

This commit is contained in:
Bala FA
2017-03-03 03:51:30 +05:30
committed by Harshavardhana
parent 208dd15245
commit 98d17d2a97
18 changed files with 178 additions and 364 deletions
+2 -2
View File
@@ -112,7 +112,7 @@ func TestServerConfig(t *testing.T) {
}
// Do this only once here.
setGlobalConfigPath(rootPath)
setConfigDir(rootPath)
// Initialize server config.
if err := loadConfig(envParams{}); err != nil {
@@ -143,7 +143,7 @@ func TestServerConfigWithEnvs(t *testing.T) {
}
// Do this only once here.
setGlobalConfigPath(rootPath)
setConfigDir(rootPath)
// Init config
initConfig()