From 70e99ea98de6b7a8632e7417a0e0a0eab88b707c Mon Sep 17 00:00:00 2001 From: Naoto Mizuno Date: Tue, 26 Sep 2023 20:38:53 +0900 Subject: [PATCH] Reduce n_trials in test_combination_of_different_distributions_objective --- tests/samplers_tests/test_samplers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/samplers_tests/test_samplers.py b/tests/samplers_tests/test_samplers.py index 117c882841..2e1bac90b4 100644 --- a/tests/samplers_tests/test_samplers.py +++ b/tests/samplers_tests/test_samplers.py @@ -922,9 +922,9 @@ def objective(trial: Trial) -> float: sampler = sampler_class() study = optuna.study.create_study(sampler=sampler) - study.optimize(objective, n_trials=10) + study.optimize(objective, n_trials=3) - assert len(study.trials) == 10 + assert len(study.trials) == 3 assert all(t.state == TrialState.COMPLETE for t in study.trials)