@@ -23,8 +23,8 @@ func TestDisconnectCommandBasic(t *testing.T) {
2323 t .Errorf ("Disconnect command crashed unexpectedly: %s" , output )
2424 }
2525
26- // Expected errors include sudo requirements, wg command issues, or no active connections
27- validErrors := []string {"sudo" , "wg-quick" , " permission" , "no active" , "not found" }
26+ // Expected errors include sudo requirements or no active connections
27+ validErrors := []string {"sudo" , "permission" , "no active" , "not found" }
2828 hasValidError := false
2929 for _ , validErr := range validErrors {
3030 if strings .Contains (strings .ToLower (output ), validErr ) {
@@ -59,8 +59,8 @@ func TestDisconnectCommandWithServer(t *testing.T) {
5959 t .Errorf ("Disconnect command crashed unexpectedly: %s" , output )
6060 }
6161
62- // Expected errors include sudo requirements, wg command issues, or server not found
63- validErrors := []string {"sudo" , "wg-quick" , " permission" , "not found" , "no active" }
62+ // Expected errors include sudo requirements or server not found
63+ validErrors := []string {"sudo" , "permission" , "not found" , "no active" }
6464 hasValidError := false
6565 for _ , validErr := range validErrors {
6666 if strings .Contains (strings .ToLower (output ), validErr ) {
@@ -179,8 +179,8 @@ func TestDisconnectCommandWithInvalidServer(t *testing.T) {
179179 t .Errorf ("Disconnect command crashed unexpectedly with invalid server: %s" , output )
180180 }
181181
182- // Expected errors include server not found, sudo requirements, or wg command issues
183- validErrors := []string {"not found" , "sudo" , "wg-quick" , " permission" , "no active" }
182+ // Expected errors include server not found or sudo requirements
183+ validErrors := []string {"not found" , "sudo" , "permission" , "no active" }
184184 hasValidError := false
185185 for _ , validErr := range validErrors {
186186 if strings .Contains (strings .ToLower (output ), validErr ) {
@@ -210,8 +210,8 @@ func TestDisconnectCommandNoActiveConnection(t *testing.T) {
210210 t .Errorf ("Disconnect command crashed unexpectedly: %s" , output )
211211 }
212212
213- // Expected errors include no active connections, sudo requirements, or wg command issues
214- validErrors := []string {"no active" , "not found" , "sudo" , "wg-quick" , " permission" }
213+ // Expected errors include no active connections or sudo requirements
214+ validErrors := []string {"no active" , "not found" , "sudo" , "permission" }
215215 hasValidError := false
216216 for _ , validErr := range validErrors {
217217 if strings .Contains (strings .ToLower (output ), validErr ) {
@@ -241,8 +241,8 @@ func TestDisconnectCommandWithExtraArguments(t *testing.T) {
241241 t .Errorf ("Disconnect command crashed unexpectedly with extra args: %s" , output )
242242 }
243243
244- // Expected errors include server not found, sudo requirements, or wg command issues
245- validErrors := []string {"not found" , "sudo" , "wg-quick" , " permission" , "no active" }
244+ // Expected errors include server not found or sudo requirements
245+ validErrors := []string {"not found" , "sudo" , "permission" , "no active" }
246246 hasValidError := false
247247 for _ , validErr := range validErrors {
248248 if strings .Contains (strings .ToLower (output ), validErr ) {
0 commit comments