dabeaz / curio

Good Curio!
Other
4.04k stars 244 forks source link

Add missing sleep after sock.close() in tcp echo tests #339

Closed bobrik closed 3 years ago

bobrik commented 3 years ago

Commit fixing the following issue:

E       AssertionError: assert ['client start',\n 'handler start',\n 'recv wait',\n ('handler', b'Msg1'),\n 'recv wait',\n ('client', b'Msg1'),\n ('handler', b'Msg2'),\n 'recv wait',\n ('client', b'Msg2'),\n 'client close'] == ['client start',\n 'handler start',\n 'recv wait',\n ('handler', b'Msg1'),\n 'recv wait',\n ('client', b'Msg1'),\n ('handler', b'Msg2'),\n 'recv wait',\n ('client', b'Msg2'),\n 'client close',\n 'handler done']
E         Right contains one more item: 'handler done'
E         Full diff:
E           [
E            'client start',
E            'handler start',
E            'recv wait',
E            ('handler',
E             b'Msg1'),
E            'recv wait',
E            ('client',
E             b'Msg1'),
E            ('handler',
E             b'Msg2'),
E            'recv wait',
E            ('client',
E             b'Msg2'),
E            'client close',
E         -  'handler done',
E           ]

tests/test_network.py:54: AssertionError