Skip to content

Commit

Permalink
fixed Init Execution
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed Jun 25, 2021
1 parent 881f078 commit 8066504
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8066504

Please sign in to comment.