diff --git a/integration/watch_test.go b/integration/watch_test.go index c18e8f871..8f3c0910f 100644 --- a/integration/watch_test.go +++ b/integration/watch_test.go @@ -41,7 +41,7 @@ var _ = Describe("Watch", func() { startGinkgoWithGopath := func(args ...string) *gexec.Session { cmd := ginkgoCommand(rootPath, args...) - cmd.Env = append([]string{"GOPATH=" + rootPath + ":" + os.Getenv("GOPATH")}, os.Environ()...) + os.Setenv("GOPATH", rootPath+":"+os.Getenv("GOPATH")) session, err := gexec.Start(cmd, GinkgoWriter, GinkgoWriter) Ω(err).ShouldNot(HaveOccurred()) return session