From 80665049dc8ad1350075e582d36128c155f3c4ed Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Fri, 25 Jun 2021 10:59:10 +0200 Subject: [PATCH] fixed Init Execution --- cmd/service_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/service_test.go b/cmd/service_test.go index 2881540f2f7..3a2c978d6c4 100644 --- a/cmd/service_test.go +++ b/cmd/service_test.go @@ -47,17 +47,18 @@ func Test_ServiceStartCMD(t *testing.T) { func Test_ServiceRunCMD(t *testing.T) { rootCmd.SetArgs([]string{ + "init", "--stunURLs", "stun:stun.wiretrustee.com:3468", "--signalAddr", "signal.wiretrustee.com:10000", - "--turnURLs foo:bar@turn:stun.wiretrustee.com:3468", + "--turnURLs", + "foo:bar@turn:stun.wiretrustee.com:3468", "--wgInterface", - "wiretrustee", + "utun99", "--wgLocalAddr", "10.100.100.1/24", }) - rootCmd.SetArgs([]string{"init"}) err := rootCmd.Execute() if err != nil { t.Fatal(err)