Change random test duration to 1-5 mins
This commit is contained in:
@@ -68,7 +68,7 @@ def run_pattern(p, pattern_name, config, duration_ms):
|
||||
def random_test():
|
||||
"""Run random test patterns continuously"""
|
||||
print("Starting Random Test Suite")
|
||||
print("Patterns will change every 2-10 minutes")
|
||||
print("Patterns will change every 1-5 minutes")
|
||||
print("Press Ctrl+C to stop")
|
||||
|
||||
# Load settings
|
||||
@@ -146,8 +146,8 @@ def random_test():
|
||||
# Randomly select a test configuration
|
||||
config = random.choice(test_configs)
|
||||
|
||||
# Random duration between 2-10 minutes (120,000 - 600,000 ms)
|
||||
duration_ms = random.randint(120000, 600000)
|
||||
# Random duration between 1-5 minutes (60,000 - 300,000 ms)
|
||||
duration_ms = random.randint(60000, 300000)
|
||||
|
||||
# Run the selected pattern
|
||||
run_pattern(p, config["pattern"], config, duration_ms)
|
||||
|
||||
Reference in New Issue
Block a user