PYTHON-5325 - Decrease TestAsyncConcurrency.test_concurrency threshold (#2291)

This commit is contained in:
Noah Stapp 2025-04-16 16:16:25 -04:00 committed by GitHub
parent 4cac781530
commit 448c8e8326
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,5 +50,5 @@ class TestAsyncConcurrency(AsyncIntegrationTest):
concurrent_time = time.time() - start
percent_faster = (sequential_time - concurrent_time) / concurrent_time * 100
# We expect the concurrent tasks to be at least 75% faster on all platforms as a conservative benchmark
self.assertGreaterEqual(percent_faster, 75)
# We expect the concurrent tasks to be at least 50% faster on all platforms as a conservative benchmark
self.assertGreaterEqual(percent_faster, 50)