From 9966cb0fbb86d4a4cbc2ef734fecbe3a82f517ad Mon Sep 17 00:00:00 2001 From: jaknapper Date: Tue, 24 Jun 2025 15:55:19 +0100 Subject: [PATCH] Longer wait in exposure time test with fewer loops and lower exposure time --- .../picamera2/test_exposure_time_drift.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hardware-specific-tests/picamera2/test_exposure_time_drift.py b/hardware-specific-tests/picamera2/test_exposure_time_drift.py index d7a24f00..cf8e1976 100644 --- a/hardware-specific-tests/picamera2/test_exposure_time_drift.py +++ b/hardware-specific-tests/picamera2/test_exposure_time_drift.py @@ -23,11 +23,12 @@ def test_exposure_time_drift(): with TestClient(server.app) as test_client: client = ThingClient.from_url("/camera/", client=test_client) - client.exposure_time = 50000 - time.sleep(0.1) + # 5444 is an exposure time supported by PiCamera2 + client.exposure_time = 5444 + time.sleep(0.5) initial_et = client.exposure_time print(f"Before capture, et is {client.exposure_time}") - for i in range(10): + for i in range(5): client.capture_jpeg(resolution="full") print(f"After capture, et is {client.exposure_time}") final_et = client.exposure_time