Merge pull request #99 from p-l-/fix-tests

Fix randomly failing tests
This commit is contained in:
Pierre 2022-12-22 17:26:25 +01:00 committed by GitHub
commit 9f786e9a6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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