Skip to content

Commit f4e482a

Browse files
Update fish test now that magic env var is not used
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
1 parent b7f9de1 commit f4e482a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

libmachine/shell/shell_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ func TestDetectBash(t *testing.T) {
1919

2020
func TestDetectFish(t *testing.T) {
2121
defer func(shell string) { os.Setenv("SHELL", shell) }(os.Getenv("SHELL"))
22-
os.Setenv("SHELL", "/bin/bash")
23-
24-
defer func(fishDir string) { os.Setenv("__fish_bin_dir", fishDir) }(os.Getenv("__fish_bin_dir"))
25-
os.Setenv("__fish_bin_dir", "/usr/local/Cellar/fish/2.2.0/bin")
22+
os.Setenv("SHELL", "/bin/fish")
2623

2724
shell, err := Detect()
2825

0 commit comments

Comments
 (0)