nachatz commented on code in PR #290:
URL: 
https://github.com/apache/pulsar-client-python/pull/290#discussion_r2752419084


##########
tests/asyncio_test.py:
##########
@@ -164,6 +164,18 @@ async def test_producer_is_connected(self):
         await producer.close()
         self.assertFalse(producer.is_connected())
 
+    async def test_shutdown_client(self):
+        producer = await 
self._client.create_producer("persistent://public/default/partitioned_topic_name_test")
+        await producer.send(b"hello")
+        self._client.shutdown()
+
+        try:
+            await producer.send(b"hello")
+            self.assertTrue(False)
+        except PulsarException:

Review Comment:
   I believe so -- however the bind currently only returns 
   
   ```
   AssertionError: PulsarException(<Result.AlreadyClosed: 15>) is not an 
instance of <class '_pulsar.AlreadyClosed'>
   ```
   
   instead of the actual `AlreadyClosed` exception. If there's a seamless way 
to update that i'd be happy to do-so



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to