Interop tests updated and fixed.

This commit is contained in:
Grant Wuerker
2020-08-18 15:35:03 -06:00
parent 5144ab8289
commit 36a4a9150d
10 changed files with 252 additions and 136 deletions

View File

@ -90,9 +90,9 @@ async def test_insecure_conn_go_to_py(security_protocol):
async def _handle_echo(stream):
read_data = await stream.read(len(expected_data))
assert read_data == expected_data.encode()
event_handler_finished.set()
await stream.write(reply_data.encode())
await stream.close()
event_handler_finished.set()
host.set_stream_handler(ECHO_PROTOCOL_ID, _handle_echo)
py_maddr = host.get_addrs()[0]