Skip to content

Commit

Permalink
Pass in zero value string for RuntimeConfigFilter tests as well
Browse files Browse the repository at this point in the history
Signed-off-by: Fang-Pen Lin <hello@fangpenlin.com>
  • Loading branch information
fangpenlin committed Jun 17, 2023
1 parent f363bdf commit 5ba137e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/hooks/exec/runtimeconfigfilter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ func TestRuntimeConfigFilter(t *testing.T) {
fileMode := os.FileMode(0o600)
rootUint32 := uint32(0)
binUser := int(1)
cwd, err := os.Getwd()
if err != nil {
t.Fatal(err)
}
for _, tt := range []struct {
name string
contextTimeout time.Duration
Expand Down Expand Up @@ -247,7 +243,7 @@ func TestRuntimeConfigFilter(t *testing.T) {
ctx, cancel = context.WithTimeout(ctx, test.contextTimeout)
defer cancel()
}
hookErr, err := RuntimeConfigFilter(ctx, test.hooks, cwd, test.input, DefaultPostKillTimeout)
hookErr, err := RuntimeConfigFilter(ctx, test.hooks, "", test.input, DefaultPostKillTimeout)
if test.expectedRunErrorString != "" {
// We have to compare the error strings in that case because
// errors.Is works differently.
Expand Down

0 comments on commit 5ba137e

Please # to comment.