Maint: upgrade golibs and env error wrapping

This commit is contained in:
Quentin McGaw (desktop)
2021-07-23 02:34:15 +00:00
parent 5b9887dade
commit 39aa983771
39 changed files with 207 additions and 152 deletions

View File

@@ -78,7 +78,7 @@ func Test_Provider_readIpvanish(t *testing.T) {
settings: Provider{
Name: constants.Ipvanish,
},
err: errDummy,
err: errors.New("environment variable PROTOCOL: dummy test error"),
},
"target IP error": {
protocol: singleStringCall{call: true},
@@ -86,7 +86,7 @@ func Test_Provider_readIpvanish(t *testing.T) {
settings: Provider{
Name: constants.Ipvanish,
},
err: errDummy,
err: errors.New("environment variable OPENVPN_TARGET_IP: dummy test error"),
},
"countries error": {
protocol: singleStringCall{call: true},
@@ -95,7 +95,7 @@ func Test_Provider_readIpvanish(t *testing.T) {
settings: Provider{
Name: constants.Ipvanish,
},
err: errDummy,
err: errors.New("environment variable COUNTRY: dummy test error"),
},
"cities error": {
protocol: singleStringCall{call: true},
@@ -105,7 +105,7 @@ func Test_Provider_readIpvanish(t *testing.T) {
settings: Provider{
Name: constants.Ipvanish,
},
err: errDummy,
err: errors.New("environment variable CITY: dummy test error"),
},
"hostnames error": {
protocol: singleStringCall{call: true},
@@ -116,7 +116,7 @@ func Test_Provider_readIpvanish(t *testing.T) {
settings: Provider{
Name: constants.Ipvanish,
},
err: errDummy,
err: errors.New("environment variable SERVER_HOSTNAME: dummy test error"),
},
"default settings": {
protocol: singleStringCall{call: true},