mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Fix transmission of chunked compressed data
This commit is contained in:
@@ -101,6 +101,13 @@ class TestGraphics(BaseTest):
|
||||
expecting_data=random_data
|
||||
)
|
||||
|
||||
# Test chunked + compressed
|
||||
b = len(compressed_random_data) // 2
|
||||
self.assertIsNone(l(compressed_random_data[:b], s=24, v=32, o='z', m=1))
|
||||
self.ae(l(compressed_random_data[b:], m=0), 'OK')
|
||||
img = g.image_for_client_id(1)
|
||||
self.ae(img['data'], random_data)
|
||||
|
||||
# Test loading from file
|
||||
f = tempfile.NamedTemporaryFile()
|
||||
f.write(random_data), f.flush()
|
||||
|
||||
Reference in New Issue
Block a user