[skip ci] doc(tests): add comment related to test duration

This commit is contained in:
Steven Palma
2025-05-21 16:12:40 +02:00
parent 4d9825bb1d
commit 0c411a6832

View File

@@ -36,8 +36,7 @@ except (ImportError, ModuleNotFoundError, NameError):
TEST_ARTIFACTS_DIR = Path(__file__).parent.parent / "artifacts" / "cameras"
BAG_FILE_PATH = TEST_ARTIFACTS_DIR / "test_rs.bag"
# NOTE(Steven): Takes 20sec, the patch being the biggest bottleneck
# NOTE(Steven): For some reason these tests take ~20sec in macOS but only ~2sec in Linux.
def mock_rs_config_enable_device_from_file(rs_config_instance, _sn):
return rs_config_instance.enable_device_from_file(str(BAG_FILE_PATH), repeat_playback=True)