From ca5970140fa7681862805c0b7f3b3b9539ac91f3 Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Fri, 25 Jun 2021 11:08:16 +0200 Subject: [PATCH] set config path to avoid ci/cd limitations --- cmd/service_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/service_test.go b/cmd/service_test.go index 3a2c978d6c4..622c4566e7c 100644 --- a/cmd/service_test.go +++ b/cmd/service_test.go @@ -11,7 +11,12 @@ func Test_ServiceInstallCMD(t *testing.T) { b := bytes.NewBufferString("") rootCmd.SetOut(b) rootCmd.SetErr(b) - rootCmd.SetArgs([]string{"service", "install"}) + rootCmd.SetArgs([]string{ + "service", + "install", + "--config", + "/tmp/config.json", + }) err := rootCmd.Execute() if err != nil { t.Fatal(err) @@ -58,6 +63,8 @@ func Test_ServiceRunCMD(t *testing.T) { "utun99", "--wgLocalAddr", "10.100.100.1/24", + "--config", + "/tmp/config.json", }) err := rootCmd.Execute() if err != nil {