Skip to content

Commit

Permalink
shorten stress test to 30 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Feb 11, 2025
1 parent 76744ea commit cc5f738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/runtime/test_runtime_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_stress_docker_runtime(temp_dir, runtime_cls, repeat=1):

for _ in range(repeat):
# run stress-ng stress tests for 1 minute
action = CmdRunAction(command='stress-ng --all 1 -t 1m')
action = CmdRunAction(command='stress-ng --all 1 -t 30s')
action.set_hard_timeout(120)
logger.info(action, extra={'msg_type': 'ACTION'})
obs = runtime.run_action(action)
Expand Down Expand Up @@ -63,7 +63,7 @@ def test_stress_docker_runtime_hit_memory_limits(temp_dir, runtime_cls):
assert obs.exit_code == 0

action = CmdRunAction(
command='stress-ng --vm 1 --vm-bytes 6G --timeout 1m --metrics'
command='stress-ng --vm 1 --vm-bytes 6G --timeout 30s --metrics'
)
action.set_hard_timeout(120)
logger.info(action, extra={'msg_type': 'ACTION'})
Expand Down

0 comments on commit cc5f738

Please sign in to comment.