mirror of
https://github.com/davegallant/vpngate.git
synced 2026-01-14 14:14:11 +00:00
Fix tests
This commit is contained in:
@@ -82,7 +82,7 @@ func GetList(httpProxy string, socks5Proxy string) (*[]Server, error) {
|
||||
if httpProxy != "" {
|
||||
proxyURL, err := url.Parse(httpProxy)
|
||||
if err != nil {
|
||||
log.Error().Msgf("Error parsing proxy:", err)
|
||||
log.Error().Msgf("Error parsing proxy: %s", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
transport := &http.Transport{
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
// TestGetListReal tests getting the real list of vpn servers
|
||||
func TestGetListReal(t *testing.T) {
|
||||
_, err := GetList("")
|
||||
_, err := GetList("", "")
|
||||
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user