Fix and improve test speed

This commit is contained in:
Rafa de la Torre
2016-09-28 13:43:50 +02:00
parent 9381d5644b
commit 64fc18b9e0
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ class TestQPS(TestCase):
def test_qps_timeout(self, req_mock):
class TestClass:
@qps_retry(timeout=1)
@qps_retry(timeout=0.001, qps=100)
def test(self):
response = requests.get('http://localhost/test_qps')
if response.status_code == 429: