Skip to content

Commit 60feeaf

Browse files
alibertsfracapuano
authored andcommitted
Fix test_teleoperate (#1216)
1 parent 79d922d commit 60feeaf

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/test_control_robot.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import time
2-
31
from lerobot.calibrate import CalibrateConfig, calibrate
42
from lerobot.record import DatasetRecordConfig, RecordConfig, record
53
from lerobot.replay import DatasetReplayConfig, ReplayConfig, replay
@@ -18,17 +16,12 @@ def test_calibrate():
1816
def test_teleoperate():
1917
robot_cfg = MockRobotConfig()
2018
teleop_cfg = MockTeleopConfig()
21-
expected_duration = 0.1
2219
cfg = TeleoperateConfig(
2320
robot=robot_cfg,
2421
teleop=teleop_cfg,
25-
teleop_time_s=expected_duration,
22+
teleop_time_s=0.1,
2623
)
27-
start = time.perf_counter()
2824
teleoperate(cfg)
29-
actual_duration = time.perf_counter() - start
30-
31-
assert actual_duration <= expected_duration * 1.1
3225

3326

3427
def test_record_and_resume(tmp_path):

0 commit comments

Comments
 (0)