(
self, connect, target_attribute, expected_port
)
| 2294 | class TestConnectionAttributes(tb.HotStandbyTestCase): |
| 2295 | |
| 2296 | async def _run_connection_test( |
| 2297 | self, connect, target_attribute, expected_port |
| 2298 | ): |
| 2299 | conn = await connect(target_session_attrs=target_attribute) |
| 2300 | self.assertTrue(_get_connected_host(conn).endswith(expected_port)) |
| 2301 | await conn.close() |
| 2302 | |
| 2303 | async def test_target_server_attribute_port(self): |
| 2304 | master_port = self.master_cluster.get_connection_spec()['port'] |
no test coverage detected