Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 141d783

Browse files
authored
Merge pull request #209 from docker/fix-e2e-env
ci: cleanup already called by env
2 parents a68af47 + 1ad336a commit 141d783

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2e/plugin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ sleep 1000`), 0700))
6262

6363
// Add mock snyk binary to the $PATH
6464
path := os.Getenv("PATH")
65-
defer env.Patch(t, "PATH", fmt.Sprintf(pathFormat(), configDir+"/scan", path))()
65+
env.Patch(t, "PATH", fmt.Sprintf(pathFormat(), configDir+"/scan", path))()
6666

6767
cmd.Command = dockerCli.Command("scan", "--version")
6868
icmd.StartCmd(cmd)

0 commit comments

Comments
 (0)