Skip to content

Commit

Permalink
Debug log about attempting to capture screenshot correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Feb 15, 2024
1 parent 614a286 commit cee1c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-tests/test_vnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ def test_vnc_screenshot(container, image_diff, unused_tcp_port):
with api.connect(
f'127.0.0.1::{unused_tcp_port}'
) as client, tempfile.TemporaryDirectory() as d:
print("Connected to VNC server. Attempting to capture screenshot...")
# Wait a bit for the desktop to fully render, as it is only started
# up when our connect call completes.
# FIXME: Repeatedly take a few screenshots here in a retry loop until
# a timeout or the images match
time.sleep(15)
screenshot_target = Path(d) / "screenshot.jpeg"
print("Connected to VNC server. Attempting to capture screenshot...")
client.captureScreen(str(screenshot_target))

# This asserts if the images are different, so test will fail
Expand Down

0 comments on commit cee1c3f

Please sign in to comment.