I have added check for unexpected packets - so those can be conditionally ignored.
This should avoid intermittent failures during batch run.
If we detect any unexpected packets (due to ICMP and what not), those will still be printed as warnings. Even though we’re ignoring such packets, we’re still ensuring that packet count is correct - so if packet sent out from the flow itself turns out to be incorrect, it will still be detected and fail the test.
I have added check for unexpected packets - so those can be conditionally ignored. This should avoid intermittent failures during batch run.
If we detect any unexpected packets (due to ICMP and what not), those will still be printed as warnings. Even though we’re ignoring such packets, we’re still ensuring that packet count is correct - so if packet sent out from the flow itself turns out to be incorrect, it will still be detected and fail the test.