HomeFreeBSD

pf tests: Make killstate:match more robust

Description

pf tests: Make killstate:match more robust

The killstate:match test starts nc as a background process. There was no
guarantee that the nc process would have connected by the time we check
for states, so this test occasionally failed without good reason.

Teach the test to wait for at least some states to turn up before
executing the critical checks.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Jun 3 2021, 1:22 PM
Parents
rGea3eca5cb6db: netpfil tests: Basic dummynet pipe test
Branches
Unknown
Tags
Unknown