From 8980db920578052ad78a55a1c28575aec7fe4a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= Date: Tue, 9 Jan 2024 05:45:39 +0100 Subject: [PATCH] Clean up retry packet test (fixes: #447) --- tests/test_packet.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/tests/test_packet.py b/tests/test_packet.py index 8621301f8..3e7247d32 100644 --- a/tests/test_packet.py +++ b/tests/test_packet.py @@ -112,15 +112,12 @@ def test_pull_retry(self): self.assertEqual(buf.tell(), 125) # check integrity - if False: - self.assertEqual( - get_retry_integrity_tag( - buf.data_slice(0, 109), - original_destination_cid, - version=header.version, - ), - header.integrity_tag, - ) + self.assertEqual( + get_retry_integrity_tag( + buf.data_slice(0, 109), original_destination_cid, version=header.version + ), + header.integrity_tag, + ) # serialize encoded = encode_quic_retry( @@ -130,8 +127,6 @@ def test_pull_retry(self): original_destination_cid=original_destination_cid, retry_token=header.token, ) - with open("bob.bin", "wb") as fp: - fp.write(encoded) self.assertEqual(encoded, data) def test_pull_retry_draft_29(self):