From db75170b432b8758ac6c24b8ced47a715f2165ea Mon Sep 17 00:00:00 2001 From: Aliaksandr Kazlou Date: Mon, 7 May 2018 00:05:20 +0300 Subject: [PATCH] #58 Make read commands test pass --- config/config_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/config_test.go b/config/config_test.go index 88baa56..fc6dbbd 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -15,12 +15,12 @@ func TestReadConfig(t *testing.T) { "logs": { Name: "logs", Command: "cat logs/app.log", - WorkingDir: "/opt/app", + WorkingDir: "", }, "app-logs": { Name: "app-logs", Command: "tail -f -n 10 logs/app.log", - WorkingDir: "/opt/app", + WorkingDir: "", }, "follow-logs": { Name: "follow-logs", @@ -31,13 +31,13 @@ func TestReadConfig(t *testing.T) { "redeploy": { Name: "redeploy", Command: "./redeploy.sh", - WorkingDir: "/opt/app", + WorkingDir: "", RequiresConfirmation: true, }, "disk-space": { Name: "disk-space", - Command: "command=df -h", - WorkingDir: "/opt/app", + Command: "df -h", + WorkingDir: "", }, } equal := reflect.DeepEqual(commands, expected)