Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjohn committed Jun 12, 2023
1 parent 03e089a commit 9d904a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ metadata:
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
o := bytes.Buffer{}
if err := GrepResources(Selector{}, strings.NewReader(tt.input), &o, Summary, false, false); err != nil {
opts := Opts{
Mode: Summary,
}
if err := GrepResources(opts, strings.NewReader(tt.input), &o); err != nil {
t.Fatal(err)
}
l := strings.Split(o.String(), "\n")
Expand Down

0 comments on commit 9d904a5

Please sign in to comment.