Fix timeout option in Windows ping input sample configuration (#2885)
This commit is contained in:
parent
f9462d4fff
commit
56a7ffe0e4
|
@ -44,8 +44,8 @@ const sampleConfig = `
|
||||||
## number of pings to send per collection (ping -n <COUNT>)
|
## number of pings to send per collection (ping -n <COUNT>)
|
||||||
count = 4 # required
|
count = 4 # required
|
||||||
|
|
||||||
## Ping timeout, in seconds. 0 means default timeout (ping -w <TIMEOUT>)
|
## Ping timeout, in seconds. 0.0 means default timeout (ping -w <TIMEOUT>)
|
||||||
Timeout = 0
|
#timeout = 0.0
|
||||||
`
|
`
|
||||||
|
|
||||||
func (s *Ping) SampleConfig() string {
|
func (s *Ping) SampleConfig() string {
|
||||||
|
|
|
@ -163,9 +163,9 @@ func TestLossyPingGather(t *testing.T) {
|
||||||
"reply_received": 7,
|
"reply_received": 7,
|
||||||
"percent_packet_loss": 22.22222222222222,
|
"percent_packet_loss": 22.22222222222222,
|
||||||
"percent_reply_loss": 22.22222222222222,
|
"percent_reply_loss": 22.22222222222222,
|
||||||
"average_response_ms": 115,
|
"average_response_ms": 115.0,
|
||||||
"minimum_response_ms": 114,
|
"minimum_response_ms": 114.0,
|
||||||
"maximum_response_ms": 119,
|
"maximum_response_ms": 119.0,
|
||||||
}
|
}
|
||||||
acc.AssertContainsTaggedFields(t, "ping", fields, tags)
|
acc.AssertContainsTaggedFields(t, "ping", fields, tags)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue