Minor fix for chameleon_test._wait_for_browser_connection

Make it a do-while loop when testing display_client.get_display_info() to make
sure the test must be executed at least once.  The test at the end of the method
in the original code may cause
telemetry.core.exceptions.BrowserConnectionGoneException which we want to avoid.

BUG=chromium:425000
TEST=run display_HotPlugAtSuspend.mirrored on nyan_big and see no error raised.

Change-Id: I7385cbf959fa6fa4ae434a962c3b3fdeec3975a9
Reviewed-on: https://chromium-review.googlesource.com/225415
Tested-by: Hung-ying Tyan <tyanh@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
Commit-Queue: Hung-ying Tyan <tyanh@chromium.org>
1 file changed