From f4e482a68f48da82e08ec5e37a854839b5eba888 Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Tue, 27 Sep 2016 16:13:26 -0700 Subject: [PATCH] Update fish test now that magic env var is not used Signed-off-by: Nathan LeClaire --- libmachine/shell/shell_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libmachine/shell/shell_test.go b/libmachine/shell/shell_test.go index ae437357..97ef34f2 100644 --- a/libmachine/shell/shell_test.go +++ b/libmachine/shell/shell_test.go @@ -19,10 +19,7 @@ func TestDetectBash(t *testing.T) { func TestDetectFish(t *testing.T) { defer func(shell string) { os.Setenv("SHELL", shell) }(os.Getenv("SHELL")) - os.Setenv("SHELL", "/bin/bash") - - defer func(fishDir string) { os.Setenv("__fish_bin_dir", fishDir) }(os.Getenv("__fish_bin_dir")) - os.Setenv("__fish_bin_dir", "/usr/local/Cellar/fish/2.2.0/bin") + os.Setenv("SHELL", "/bin/fish") shell, err := Detect()