Skip to content

Commit 78ac629

Browse files
committed
Only run non-windows logic on non-windows platforms
1 parent 2069763 commit 78ac629

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/use_int_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ func (suite *UseIntegrationTestSuite) TestReset() {
126126

127127
cfg, err := config.New()
128128
suite.NoError(err)
129-
rcfile, err := subshell.New(cfg).RcFile()
130-
if runtime.GOOS != "windows" && fileutils.FileExists(rcfile) {
129+
if runtime.GOOS != "windows" {
130+
rcfile, err := subshell.New(cfg).RcFile()
131+
fileutils.FileExists(rcfile)
131132
suite.NoError(err)
132133
suite.Contains(string(fileutils.ReadFileUnsafe(rcfile)), ts.Dirs.DefaultBin, "PATH does not have your project in it")
133134
}

0 commit comments

Comments
 (0)