No issue: increase sleep duration in cold_view_nav_start benchmark.

This commit is contained in:
Michael Comella 2021-06-17 12:25:34 -07:00 committed by Michael Comella
parent 79af077b2f
commit 3905859fcb
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ def get_measurement(test_name, pkg_id, stdout):
if test_name in [TEST_COLD_MAIN_FF, TEST_COLD_VIEW_FF]:
measurement = get_measurement_from_am_start_log(stdout)
elif test_name in [TEST_COLD_VIEW_NAV_START, TEST_COLD_MAIN_RESTORE]:
time.sleep(3) # We must sleep until the navigation start event occurs.
time.sleep(4) # We must sleep until the navigation start event occurs.
proc = subprocess.run(['adb', 'logcat', '-d'], check=True, capture_output=True)
measurement = get_measurement_from_nav_start_logcat(pkg_id, proc.stdout)
else: raise NotImplementedError('method unexpectedly undefined for test_name {}'.format(test_name))