Fix failing config tests
@@ -7,7 +7,7 @@ import (
)
func TestOverride(t *testing.T) {
- c := NewConfig()
+ c := GetConfig()
originalSetting := c.Viper.Get("Lbrynet")
Override("Lbrynet", "http://www.google.com:8080/api/proxy")
assert.Equal(t, "http://www.google.com:8080/api/proxy", c.Viper.Get("Lbrynet"))
@@ -17,15 +17,9 @@ func TestOverride(t *testing.T) {
}
func TestIsProduction(t *testing.T) {
- // c := NewConfig()
Override("Debug", false)
assert.True(t, IsProduction())
Override("Debug", true)
assert.False(t, IsProduction())
defer RestoreOverridden()
}
-
-func TestProjectRoot(t *testing.T) {
- // c := NewConfig()
- assert.Equal(t, "/tmp", ProjectRoot())
-}
