Maint: change default ping address to github.com to test DNS
This commit is contained in:
@@ -52,7 +52,7 @@ func (settings *Health) read(r reader) (err error) {
|
||||
return fmt.Errorf("environment variable HEALTH_SERVER_ADDRESS: %w", err)
|
||||
}
|
||||
|
||||
settings.AddressToPing, err = r.env.Get("HEALTH_ADDRESS_TO_PING", params.Default("1.1.1.1"))
|
||||
settings.AddressToPing, err = r.env.Get("HEALTH_ADDRESS_TO_PING", params.Default("github.com"))
|
||||
if err != nil {
|
||||
return fmt.Errorf("environment variable HEALTH_ADDRESS_TO_PING: %w", err)
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ func Test_Health_lines(t *testing.T) {
|
||||
"filled settings": {
|
||||
settings: Health{
|
||||
ServerAddress: "address:9999",
|
||||
AddressToPing: "1.1.1.1",
|
||||
AddressToPing: "github.com",
|
||||
VPN: HealthyWait{
|
||||
Initial: time.Second,
|
||||
Addition: time.Minute,
|
||||
@@ -58,7 +58,7 @@ func Test_Health_lines(t *testing.T) {
|
||||
lines: []string{
|
||||
"|--Health:",
|
||||
" |--Server address: address:9999",
|
||||
" |--Address to ping: 1.1.1.1",
|
||||
" |--Address to ping: github.com",
|
||||
" |--VPN:",
|
||||
" |--Initial duration: 1s",
|
||||
" |--Addition duration: 1m0s",
|
||||
|
||||
Reference in New Issue
Block a user