summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDipen Patel <[email protected]>2015-10-31 12:33:50 -0400
committerDipen Patel <[email protected]>2015-10-31 12:33:50 -0400
commit78d857a374350edc275bcf47df040a24b3ec53ff (patch)
tree19b7f6ee3376dc8f84b7362b53a1f9f95e78e3bc
parent19148eba44d6597363fcfd74596f4de02a63a3b0 (diff)
downloadcaddy-78d857a374350edc275bcf47df040a24b3ec53ff.tar.gz
caddy-78d857a374350edc275bcf47df040a24b3ec53ff.zip
debugged startupshutdown.go
-rw-r--r--config/setup/startupshutdown_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/setup/startupshutdown_test.go b/config/setup/startupshutdown_test.go
index d79a000d9..cf07a7e8c 100644
--- a/config/setup/startupshutdown_test.go
+++ b/config/setup/startupshutdown_test.go
@@ -22,7 +22,7 @@ func TestStartup(t *testing.T) {
testDir := filepath.Join(tempDirPath, "temp_dir_for_testing_startupshutdown.go")
osSenitiveTestDir := filepath.FromSlash(testDir)
- exec.Command("rm", "-r", osSenitiveTestDir).Start() // removes osSenitiveTestDir from the OS's temp directory, if the osSenitiveTestDir already exists
+ exec.Command("rm", "-r", osSenitiveTestDir).Run() // removes osSenitiveTestDir from the OS's temp directory, if the osSenitiveTestDir already exists
tests := []struct {
input string
@@ -33,7 +33,7 @@ func TestStartup(t *testing.T) {
{"startup mkdir " + osSenitiveTestDir, false, false},
// test case #1 tests proper functionality of non-blocking commands
- {"startup mkdir " + osSenitiveTestDir, false, true},
+ {"startup mkdir " + osSenitiveTestDir + " &", false, true},
// test case #2 tests handling of non-existant commands
{"startup " + strconv.Itoa(int(time.Now().UnixNano())), true, true},