diff --git a/src/python/grpcio_tests/tests_aio/unit/channel_ready_test.py b/src/python/grpcio_tests/tests_aio/unit/channel_ready_test.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio_tests/tests_aio/unit/channel_ready_test.py
+++ b/src/python/grpcio_tests/tests_aio/unit/channel_ready_test.py
@@ -32,8 +32,8 @@ class TestChannelReady(AioTestBase):
 
     async def setUp(self):
         address, self._port, self._socket = get_socket(listen=False)
-        self._channel = aio.insecure_channel(f"{address}:{self._port}")
         self._socket.close()
+        self._channel = aio.insecure_channel(f"{address}:{self._port}")
 
     async def tearDown(self):
         await self._channel.close()
Close the socket before constructing the channel