Skip to content

Commit f9d0ff6

Browse files
committed
Update OP_COMPRESSED comment
1 parent 5c795c8 commit f9d0ff6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/asynchronous/test_network_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ async def test_op_reply_op_code(self):
226226

227227
async def test_compression_header_returns_op_code_and_compressor_id(self):
228228
protocol = await _make_protocol()
229-
# op_code=2013, uncompressed_size=0, compressor_id=1 (snappy)
229+
# <iiB: little-endian, i32 op code=2013, i32 uncompressed size=0, u8 compressor id=1 (snappy)
230230
data = struct.pack("<iiB", 2013, 0, 1)
231231
protocol._compression_header = memoryview(bytearray(data))
232232
op_code, compressor_id = protocol.process_compression_header()

test/test_network_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def test_op_reply_op_code(self):
225225

226226
def test_compression_header_returns_op_code_and_compressor_id(self):
227227
protocol = _make_protocol()
228-
# op_code=2013, uncompressed_size=0, compressor_id=1 (snappy)
228+
# <iiB: little-endian, i32 op code=2013, i32 uncompressed size=0, u8 compressor id=1 (snappy)
229229
data = struct.pack("<iiB", 2013, 0, 1)
230230
protocol._compression_header = memoryview(bytearray(data))
231231
op_code, compressor_id = protocol.process_compression_header()

0 commit comments

Comments
 (0)