Skip to content

Commit

Permalink
Clean up retry packet test (fixes: #447)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Jan 9, 2024
1 parent 1f8735c commit 1db3fa7
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions tests/test_packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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):
Expand Down

0 comments on commit 1db3fa7

Please sign in to comment.