Fix _stream_unary not working with empty iterables (#422)

* Fixed `do_many_things` method in `ThingService`
* Added test for empty iterables
* Fixed `_stream_unary` not sending request first
This commit is contained in:
Sebastian Pietras
2023-10-18 00:54:23 +02:00
committed by GitHub
parent 24db53290e
commit e309513131
3 changed files with 26 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ class ServiceStub(ABC):
response_type,
**self.__resolve_request_kwargs(timeout, deadline, metadata),
) as stream:
await stream.send_request()
await self._send_messages(stream, request_iterator)
response = await stream.recv_message()
assert response is not None