unit tests, fix returned data

This commit is contained in:
Pieprzycki Piotr
2016-11-11 23:35:51 +01:00
parent 681797fc6d
commit 0518980ab8
42 changed files with 713 additions and 142 deletions

View File

@@ -0,0 +1 @@
{"success": {"packet_loss": 0, "rtt_stddev": 0.123, "rtt_min": 0.086, "results": [{"rtt": 0.175, "ip_address": "8.8.8.8"}], "rtt_avg": 0.175, "rtt_max": 0.417, "probes_sent": 5}}

View File

@@ -0,0 +1,10 @@
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=64 time=0.112 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=64 time=0.114 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=64 time=0.136 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=64 time=0.112 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=64 time=0.112 ms
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 0.112/0.117/0.136/0.011 ms