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")

(cherry picked from commit 70dd30d49c29a27e1ef159660a7e3dbb84082674)

Details

Provenance
kpAuthored on Jun 3 2021, 1:22 PM
Parents
rG09a6fc8dbe2e: libalias: Remove unused function LibAliasCheckNewLink
Branches
Unknown
Tags
Unknown