Skip to content

Commit 26d59f0

Browse files
committed
ICMP echo: example test were failing due to regex not matching TTL
1 parent b734893 commit 26d59f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/protocols/icmp_echo/example_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_examples_icmp_echo(env, extra_data):
1616
ip = dut.expect(re.compile(r'64 bytes from ({}) icmp_seq=1 ttl=\d+ time=\d+ ms'.format(ip_re)))[0]
1717

1818
# expect at least one more (there could be lost packets)
19-
dut.expect(re.compile(r'64 bytes from {} icmp_seq=[2-5] ttl=49 time='.format(ip)))
19+
dut.expect(re.compile(r'64 bytes from {} icmp_seq=[2-5] ttl=\d+ time='.format(ip)))
2020

2121
dut.expect(re.compile(r'5 packets transmitted, [2-5] received, \d{1,3}% packet loss'))
2222
dut.write('')

0 commit comments

Comments
 (0)