mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
Add error type support for Linux Ping (#575)
* feat: add icmp error handle into linux_parse * refactor: fixed timestamp offset logic(including error-response-type condition)
This commit is contained in:
@ -597,7 +597,7 @@ class MyTests(unittest.TestCase):
|
||||
"""
|
||||
Test 'ping' on Ubuntu 22.4 with destination unreachable message
|
||||
"""
|
||||
self.assertEqual(list(jc.parsers.ping_s.parse(self.ubuntu_22_4_ping_dest_unreachable.splitlines(), quiet=True)), [self.ubuntu_22_4_ping_dest_unreachable_streaming_json])
|
||||
self.assertEqual(list(jc.parsers.ping_s.parse(self.ubuntu_22_4_ping_dest_unreachable.splitlines(), quiet=True)), self.ubuntu_22_4_ping_dest_unreachable_streaming_json)
|
||||
|
||||
|
||||
def test_ping_s_hostname_I_ubuntu_22_4(self):
|
||||
|
Reference in New Issue
Block a user