Fix randomly failing tests

This commit is contained in:
Pierre Lalet 2022-12-22 17:17:32 +01:00
parent 61a8cebf8f
commit 089c971ae9

View file

@ -61,11 +61,15 @@ def test_rpc_nmap():
"tcp" if scan == "S" else "udp"
), f"Unexpected proto {port['protocol']} for scan {scan}"
assert port["service_name"] in {
"rpcbind",
"nfs",
"rpcbind",
"rstatd",
"rusersd",
}, f"Unexpected service_name: {port['service_name']}"
assert port["service_extrainfo"] in {
"RPC #100000",
"RPC #100001",
"RPC #100002",
"RPC #100003",
}, f"Unexpected service_extrainfo: {port['service_extrainfo']}"
assert (