Skip to content

Commit

Permalink
Document why we are waiting longer here
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Feb 15, 2024
1 parent 5d1b586 commit 614a286
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integration-tests/test_vnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def test_vnc_screenshot(container, image_diff, unused_tcp_port):
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 couple of seconds for the desktop to fully render
# 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"
client.captureScreen(str(screenshot_target))
Expand Down

0 comments on commit 614a286

Please sign in to comment.