mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Soak up protocol responses after a cancel to avoid outputting garbage to the shell after the kitten exits
This commit is contained in:
@@ -118,7 +118,7 @@ class TestFileTransmission(BaseTest):
|
||||
ft.handle_serialized_command(serialized_cmd(action='data', data='abcd'))
|
||||
self.assertTrue(os.path.exists(dest))
|
||||
ft.handle_serialized_command(serialized_cmd(action='cancel'))
|
||||
self.ae(ft.test_responses, [response(status='OK'), response(status='STARTED', name=dest)])
|
||||
self.ae(ft.test_responses, [response(status='OK'), response(status='STARTED', name=dest), response(status='CANCELED')])
|
||||
self.assertFalse(ft.active_receives)
|
||||
# compress with zlib
|
||||
ft = FileTransmission()
|
||||
|
||||
Reference in New Issue
Block a user