summaryrefslogtreecommitdiff
path: root/noxfile.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2022-04-15 18:28:23 -0500
committerJordan Cook <jordan.cook@pioneer.com>2022-04-15 18:32:31 -0500
commitd3a572ae7dd2b2c1b3db8bafe1338a3cac8e950b (patch)
tree245c06e91c7f21bb1ce236b567929fe2ac6f7e4e /noxfile.py
parentaf1444e94f69986bb5c82768c4bffcfe666573b6 (diff)
downloadrequests-cache-d3a572ae7dd2b2c1b3db8bafe1338a3cac8e950b.tar.gz
Set stress test multiplier back to 5 for pre-deploy tests
Diffstat (limited to 'noxfile.py')
-rw-r--r--noxfile.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/noxfile.py b/noxfile.py
index 68348c5..737e266 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -68,9 +68,11 @@ def coverage(session):
def stress_test(session):
"""Run concurrency tests with a higher stress test multiplier"""
cmd = f'pytest {INTEGRATION_TESTS} -rs -k concurrency'
+ multiplier = session.posargs[0] if session.posargs else STRESS_TEST_MULTIPLIER
+
session.run(
*cmd.split(' '),
- env={'STRESS_TEST_MULTIPLIER': str(STRESS_TEST_MULTIPLIER)},
+ env={'STRESS_TEST_MULTIPLIER': str(multiplier)},
)