mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
Fix: panic for certain no server found errors
This commit is contained in:
@@ -19,9 +19,9 @@ func Test_Cyberghost_filterServers(t *testing.T) {
|
||||
filteredServers []models.CyberghostServer
|
||||
err error
|
||||
}{
|
||||
"no servers": {
|
||||
"no server": {
|
||||
selection: configuration.ServerSelection{VPN: constants.OpenVPN},
|
||||
err: errors.New("no server found: for VPN openvpn; protocol udp"),
|
||||
err: errors.New("no server found: for VPN openvpn; protocol udp; groups Premium UDP Asia, Premium UDP Europe, Premium UDP USA"), //nolint:lll
|
||||
},
|
||||
"servers without filter defaults to UDP": {
|
||||
servers: []models.CyberghostServer{
|
||||
|
||||
Reference in New Issue
Block a user