We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a8e5a commit 9b1fe75Copy full SHA for 9b1fe75
tests/unit/test_bidi.py
@@ -828,11 +828,13 @@ def test_rpc_callback_fires_when_consumer_start_fails(self):
828
bidi_rpc._start_rpc.side_effect = expected_exception
829
830
consumer = bidi.BackgroundConsumer(bidi_rpc, on_response=None)
831
+
832
+ consumer.start()
833
834
# Wait for the consumer's thread to exit.
835
while consumer.is_active:
836
pass
837
- consumer.start()
838
assert callback.call_args.args[0] == grpc.StatusCode.INVALID_ARGUMENT
839
840
def test_consumer_expected_error(self, caplog):
0 commit comments