@@ -22,7 +22,7 @@ def _get_cassandra_control(self, container=None):
2222
2323 @pytest .mark .integration
2424 @pytest .mark .asyncio
25- async def test_session_health_check_pattern (self ):
25+ async def test_session_health_check_pattern (self , cassandra_container ):
2626 """Test the FastAPI health check pattern that might prevent reconnection."""
2727 print ("\n === Testing FastAPI Health Check Pattern ===" )
2828
@@ -71,7 +71,7 @@ async def health_check():
7171
7272 # Disable Cassandra
7373 print ("\n Disabling Cassandra..." )
74- control = self ._get_cassandra_control ()
74+ control = self ._get_cassandra_control (cassandra_container )
7575
7676 if os .environ .get ("CI" ) == "true" :
7777 # Still test that health check works with available service
@@ -132,7 +132,7 @@ async def health_check():
132132
133133 @pytest .mark .integration
134134 @pytest .mark .asyncio
135- async def test_global_session_reconnection (self ):
135+ async def test_global_session_reconnection (self , cassandra_container ):
136136 """Test reconnection with global session variable like FastAPI."""
137137 print ("\n === Testing Global Session Reconnection ===" )
138138
@@ -170,7 +170,7 @@ async def test_global_session_reconnection(self):
170170 print ("✓ Initial query works" )
171171
172172 # Get control interface
173- control = self ._get_cassandra_control ()
173+ control = self ._get_cassandra_control (cassandra_container )
174174
175175 if os .environ .get ("CI" ) == "true" :
176176 print ("\n Skipping outage simulation in CI" )
0 commit comments