test: Run negative ping tests in parallel

Rather than having to wait for each timeout sequentially, run each
test in parallel.
This commit is contained in:
Tobias Waldekranz
2024-05-17 23:14:42 +02:00
parent 4cf54d422e
commit 9e7e30ccb0
5 changed files with 37 additions and 9 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ with infamy.Test() as test:
ns1.addip("10.0.0.10")
ns1.addroute("default", "10.0.0.1")
ns0.must_not_reach("10.0.0.10")
ns1.must_not_reach("192.168.0.10")
infamy.parallel(lambda: ns0.must_not_reach("10.0.0.10"),
lambda: ns1.must_not_reach("192.168.0.10"))
test.succeed()