Skip to content

Commit c0ef126

Browse files
committed
refactor(tests): remove redundant concurrent access simulation test
1 parent 04de52b commit c0ef126

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

tests/test_integration_functional.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -176,40 +176,6 @@ def test_crud_operations_performance(empty_client):
176176
response = empty_client.delete(url_for("messages.delete", id=message_id))
177177
assert response.status_code == 302
178178

179-
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-
213179
def test_csrf_protection_compatibility(client):
214180
"""Test that CSRF protection works with the framework."""
215181
message = Message.query.first()

0 commit comments

Comments
 (0)