Fix flake in TrialComparisonCertVerifierFeatureEnabledTest.
The test was checking the CertVerifier_Job_Latency_TrialSecondary and CertVerifier_TrialComparisonResult histogram values, but those histograms are recorded by a background task that is independent of page loading, so they may not be finished by the time the ui_test_utils::NavigateToURL call completes. Checking the CertVerifier_Job_Latency_TrialPrimary histogram is sufficient to tell whether the trial was enabled or not, and that histogram is recorded synchronously when the main verification completes, so should always be present when NavigateToURL returns. Bug: 981325 Change-Id: I1c7ab99d79e5ba58d4bc561d88b00024e22f3cd8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1689399Reviewed-by:Eric Roman <eroman@chromium.org> Commit-Queue: Matt Mueller <mattm@chromium.org> Cr-Commit-Position: refs/heads/master@{#675820}
Showing
Please register or sign in to comment