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)