concourse / concourse

Use t.Setenv and friends instead of os.Setenv for test file(s) GO-W1032
Bug risk
Major
2 occurrences in this check
os.Setenv() can be replaced by 'testing.Setenv()' in anonymous function
133		})
134
135		AfterEach(func() {
136			os.Setenv("PATH", oldPATH)137		})
138
139		It("extracts the ZIP's files, generating directories, and honoring file permissions and symlinks", extractionTest)
os.Setenv() can be replaced by 'testing.Setenv()' in anonymous function
126
127		BeforeEach(func() {
128			oldPATH = os.Getenv("PATH")
129			os.Setenv("PATH", "/dev/null")130
131			_, err := exec.LookPath("unzip")
132			Expect(err).To(HaveOccurred())