chore: simplify provider GetConnection
This commit is contained in:
@@ -27,7 +27,7 @@ func Test_Windscribe_GetConnection(t *testing.T) {
|
||||
"no server available": {
|
||||
selection: settings.ServerSelection{}.WithDefaults(providers.Windscribe),
|
||||
errWrapped: utils.ErrNoServerFound,
|
||||
errMessage: "no server found: for VPN openvpn; protocol udp",
|
||||
errMessage: "cannot filter servers: no server found: for VPN openvpn; protocol udp",
|
||||
},
|
||||
"no filter": {
|
||||
servers: []models.Server{
|
||||
@@ -72,6 +72,7 @@ func Test_Windscribe_GetConnection(t *testing.T) {
|
||||
Type: vpn.OpenVPN,
|
||||
IP: net.IPv4(2, 2, 2, 2),
|
||||
Port: 1194,
|
||||
Hostname: "b",
|
||||
Protocol: constants.UDP,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user