diff --git a/tests/test_simulation_execution_options.py b/tests/test_simulation_execution_options.py index 8a25de9b..7e2a9f3c 100644 --- a/tests/test_simulation_execution_options.py +++ b/tests/test_simulation_execution_options.py @@ -162,7 +162,7 @@ def test_as_list_custom_record(self): options = self.default_options self.mock_sensor.record = ["p_max", "u_min", "I_avg"] options.device_num = 2 - options.num_threads = 8 + options.num_threads = os.cpu_count() options.verbose_level = 1 options_list = options.as_list(self.mock_sensor) @@ -192,7 +192,7 @@ def test_as_list_no_record(self): options = self.default_options self.mock_sensor.record = None options.device_num = 1 - options.num_threads = 4 + options.num_threads = os.cpu_count() options.verbose_level = 0 options_list = options.as_list(self.mock_sensor) @@ -210,7 +210,7 @@ def test_list_compared_to_string(self): """Test the list representation compared to the string representation.""" options = self.default_options options.device_num = 1 - options.num_threads = 4 + options.num_threads = os.cpu_count() options.verbose_level = 1 options_list = options.as_list(self.mock_sensor)