Fix tests

This commit is contained in:
Dave Gallant
2024-07-21 09:18:43 -04:00
parent ac218fc82a
commit 31a76f06cd
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ func GetList(httpProxy string, socks5Proxy string) (*[]Server, error) {
if httpProxy != "" { if httpProxy != "" {
proxyURL, err := url.Parse(httpProxy) proxyURL, err := url.Parse(httpProxy)
if err != nil { if err != nil {
log.Error().Msgf("Error parsing proxy:", err) log.Error().Msgf("Error parsing proxy: %s", err)
os.Exit(1) os.Exit(1)
} }
transport := &http.Transport{ transport := &http.Transport{

View File

@@ -9,7 +9,7 @@ import (
// TestGetListReal tests getting the real list of vpn servers // TestGetListReal tests getting the real list of vpn servers
func TestGetListReal(t *testing.T) { func TestGetListReal(t *testing.T) {
_, err := GetList("") _, err := GetList("", "")
assert.NoError(t, err) assert.NoError(t, err)
} }