Skip to content

Commit

Permalink
Only modify throughput in test mode if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmitterdorfer committed Nov 5, 2020
1 parent 808dcbf commit 86c8025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esrally/track/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ def post_process_for_test_mode(t):
logger.debug("Resetting measurement time period for [%s] to [%d] seconds.", str(leaf_task), leaf_task.time_period)

# Keep throttled to expose any errors but increase the target throughput for short execution times.
if leaf_task.throttled:
if leaf_task.throttled and leaf_task.target_throughput:
original_throughput = leaf_task.target_throughput
leaf_task.params.pop("target-throughput", None)
leaf_task.params.pop("target-interval", None)
Expand Down

0 comments on commit 86c8025

Please sign in to comment.