MCPcopy Create free account
hub / github.com/FDio/vpp / test_timeout_inline

Method test_timeout_inline

test/test_reassembly.py:481–501  ·  view source on GitHub ↗

timeout (inline)

(self)

Source from the content-addressed store, hash-verified

479 self.verify_capture(packets)
480
481 def test_timeout_inline(self):
482 """timeout (inline)"""
483
484 dropped_packet_indexes = set(
485 index for (index, frags, _, _) in self.pkt_infos if len(frags) > 1
486 )
487
488 self.vapi.ip_reassembly_set(
489 timeout_ms=0,
490 max_reassemblies=1000,
491 max_reassembly_length=3,
492 expire_walk_interval_ms=10000,
493 )
494
495 packets = self.send_and_expect_multi(
496 send=[Send(self.src_if, self.fragments_400)],
497 expect=[
498 Expect(self.dst_if, len(self.pkt_infos) - len(dropped_packet_indexes))
499 ],
500 )[0].packets
501 self.verify_capture(packets, dropped_packet_indexes)
502
503 def test_timeout_cleanup(self):
504 """timeout (cleanup)"""

Callers

nothing calls this directly

Calls 5

verify_captureMethod · 0.95
SendClass · 0.90
ExpectClass · 0.90
send_and_expect_multiMethod · 0.80
setFunction · 0.50

Tested by

no test coverage detected