aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/yaml_test.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkg/config/yaml_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/config/yaml_test.go b/pkg/config/yaml_test.go
index de20c9f..4fc501a 100644
--- a/pkg/config/yaml_test.go
+++ b/pkg/config/yaml_test.go
@@ -316,8 +316,9 @@ feeds:
for _, tt := range tests {
tst.Run(tt.name, func(tst *testing.T) {
- var buf = []byte(tt.inp)
- got, err := unmarshal(buf, WithDefault())
+ in := strings.NewReader(tt.inp)
+
+ got, err := unmarshal(in, WithDefault())
if (err != nil) != tt.wantErr {
tst.Errorf("parse() error = %v, wantErr %v", err, tt.wantErr)
return