From cef1da0c4adfbd13708bd2f4f2c5985727c7c458 Mon Sep 17 00:00:00 2001 From: Simon Alibert Date: Fri, 6 Jun 2025 09:23:13 +0200 Subject: [PATCH] Simplify test_teleoperate --- tests/test_control_robot.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/test_control_robot.py b/tests/test_control_robot.py index 771a7e426a..2ec6a29050 100644 --- a/tests/test_control_robot.py +++ b/tests/test_control_robot.py @@ -1,5 +1,3 @@ -import time - from lerobot.calibrate import CalibrateConfig, calibrate from lerobot.record import DatasetRecordConfig, RecordConfig, record from lerobot.replay import DatasetReplayConfig, ReplayConfig, replay @@ -18,17 +16,12 @@ def test_calibrate(): def test_teleoperate(): robot_cfg = MockRobotConfig() teleop_cfg = MockTeleopConfig() - expected_duration = 0.1 cfg = TeleoperateConfig( robot=robot_cfg, teleop=teleop_cfg, - teleop_time_s=expected_duration, + teleop_time_s=0.1, ) - start = time.perf_counter() teleoperate(cfg) - actual_duration = time.perf_counter() - start - - assert actual_duration <= expected_duration * 1.1 def test_record_and_resume(tmp_path):