From 98b232bc4c4cab9aa45d0c446761693fe2a1ccfa Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 12 Jun 2022 11:58:54 +0200 Subject: [PATCH] Updated link test --- tests/link.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/link.py b/tests/link.py index 35c28df..ca61536 100644 --- a/tests/link.py +++ b/tests/link.py @@ -117,7 +117,16 @@ class TestLink(unittest.TestCase): break pduration = time.time()-pstart - + + n_failed = 0 + for r in receipts: + if not r.status == RNS.PacketReceipt.DELIVERED: + n_failed += 1 + + if n_failed > 0: + ns = "s" if n_failed != 1 else "" + print("Failed to receive proof for "+str(n_failed)+" packet"+ns) + self.assertEqual(all_ok, True) print("OK!") print("Single packet and proof round-trip throughput is "+self.size_str(b/pduration, "b")+"ps")