summaryrefslogtreecommitdiffstats
path: root/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'config_test.go')
-rw-r--r--config_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/config_test.go b/config_test.go
index d567b8f..3f4c4b5 100644
--- a/config_test.go
+++ b/config_test.go
@@ -9,6 +9,7 @@ import (
"github.com/xxxserxxx/gotop/v3/widgets"
)
+// FIXME This is totally broken since the updates
func TestParse(t *testing.T) {
tests := []struct {
i string
@@ -37,8 +38,6 @@ func TestParse(t *testing.T) {
f: func(c Config, e error) {
assert.Nil(t, e, "unexpected error")
assert.Equal(t, "abc", c.ConfigDir)
- assert.Equal(t, "bar", c.LogDir)
- assert.Equal(t, "errors", c.LogFile)
},
},
{
@@ -46,8 +45,6 @@ func TestParse(t *testing.T) {
f: func(c Config, e error) {
assert.Nil(t, e, "unexpected error")
assert.Equal(t, "abc", c.ConfigDir)
- assert.Equal(t, "bar", c.LogDir)
- assert.Equal(t, "errors", c.LogFile)
},
},
{
@@ -81,7 +78,7 @@ func TestParse(t *testing.T) {
for _, tc := range tests {
in := strings.NewReader(tc.i)
c := Config{}
- e := Parse(in, &c)
+ e := load(in, &c)
tc.f(c, e)
}
}