mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-22 06:31:15 +01:00
Reduce ping timeout during test
This commit is contained in:
parent
04de262268
commit
855c106e9b
@ -29,7 +29,7 @@ func TestGetHTTPClient(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPing(t *testing.T) {
|
||||
pingTimeout = time.Second
|
||||
pingTimeout = 500 * time.Millisecond
|
||||
if success, rtt := Ping("127.0.0.1"); !success {
|
||||
t.Error("expected true")
|
||||
if rtt == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user