From 3d68d06ac70cddb3521f912a5c06fb3e4f10c47f Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Mon, 26 Oct 2015 20:35:13 -0700 Subject: [PATCH] Forcing the Env variable to empty while testing the default shell logic --- command/agent/check_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/agent/check_test.go b/command/agent/check_test.go index 2e9c2efa39..3736f8d3ac 100644 --- a/command/agent/check_test.go +++ b/command/agent/check_test.go @@ -585,6 +585,7 @@ func TestDockerCheckWhenExecInfoFails(t *testing.T) { } func TestDockerCheckDefaultToSh(t *testing.T) { + os.Setenv("SHELL", "") mock := &MockNotify{ state: make(map[string]string), updates: make(map[string]int),