Skip to content

Commit 48bdf46

Browse files
committed
Pass in zero value string for RuntimeConfigFilter tests as well
Signed-off-by: Fang-Pen Lin <[email protected]>
1 parent 5305c68 commit 48bdf46

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/hooks/exec/runtimeconfigfilter_test.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ func TestRuntimeConfigFilter(t *testing.T) {
1717
fileMode := os.FileMode(0o600)
1818
rootUint32 := uint32(0)
1919
binUser := int(1)
20-
cwd, err := os.Getwd()
21-
if err != nil {
22-
t.Fatal(err)
23-
}
2420
for _, tt := range []struct {
2521
name string
2622
contextTimeout time.Duration
@@ -247,7 +243,7 @@ func TestRuntimeConfigFilter(t *testing.T) {
247243
ctx, cancel = context.WithTimeout(ctx, test.contextTimeout)
248244
defer cancel()
249245
}
250-
hookErr, err := RuntimeConfigFilter(ctx, test.hooks, cwd, test.input, DefaultPostKillTimeout)
246+
hookErr, err := RuntimeConfigFilter(ctx, test.hooks, "", test.input, DefaultPostKillTimeout)
251247
if test.expectedRunErrorString != "" {
252248
// We have to compare the error strings in that case because
253249
// errors.Is works differently.

0 commit comments

Comments
 (0)