File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -177,39 +177,6 @@ def test_crud_operations_performance(empty_client):
177177 assert response .status_code == 302
178178
179179
180- def test_concurrent_access_simulation (client ):
181- """Test application under simulated concurrent access."""
182- results = []
183- errors = []
184-
185- def make_request ():
186- try :
187- with client .application .app_context ():
188- response = client .get (url_for ("messages.index" ))
189- results .append (response .status_code )
190- except Exception as e :
191- errors .append (str (e ))
192-
193- threads = []
194- for _ in range (10 ):
195- thread = threading .Thread (target = make_request )
196- threads .append (thread )
197-
198- for thread in threads :
199- thread .start ()
200-
201- for thread in threads :
202- thread .join ()
203-
204- assert (
205- len (results ) >= 5
206- ), f"Expected at least 5 successful results, got { len (results )} "
207- assert all (status == 200 for status in results ), f"Some requests failed: { results } "
208-
209-
210- # Security Tests
211-
212-
213180def test_csrf_protection_compatibility (client ):
214181 """Test that CSRF protection works with the framework."""
215182 message = Message .query .first ()
You can’t perform that action at this time.
0 commit comments