diff options
author | Sean E. Russell <ser@ser1.net> | 2020-04-23 13:38:22 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-04-23 13:38:22 -0500 |
commit | 61e080e51854fbaca0836e2be6eaf623153cdb0f (patch) | |
tree | c37140f266ed0101d2819b20055a24805303e713 /config_test.go | |
parent | 32861bcca88ca9fb678244b2d1ba65d09d946acc (diff) |
Remove deprecated command-line argumentsv3.6
Diffstat (limited to 'config_test.go')
-rw-r--r-- | config_test.go | 7 |
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) } } |