From 23c2296ae94bedd616bffdf6f87f689bdc90b108 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Fri, 1 May 2020 17:17:22 +0200 Subject: YAML Parsing: Enable 'KnownFields' --- pkg/config/yaml_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/config/yaml_test.go') diff --git a/pkg/config/yaml_test.go b/pkg/config/yaml_test.go index 4fc501a..ded9453 100644 --- a/pkg/config/yaml_test.go +++ b/pkg/config/yaml_test.go @@ -212,6 +212,8 @@ func TestUnmarshal(tst *testing.T) { c.FeedOptions.MinFreq = 6 return c }()}, + {name: "Known config with invalid feed-options", + inp: "options:\n max-frequency: 6", wantErr: true, config: config{}}, {name: "Config with feed", inp: ` something: 1 -- cgit v1.2.3-70-g09d2