• Matt Mueller's avatar
    Fix flake in TrialComparisonCertVerifierFeatureEnabledTest. · 622a23bf
    Matt Mueller authored
    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: default avatarEric Roman <eroman@chromium.org>
    Commit-Queue: Matt Mueller <mattm@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#675820}
    622a23bf
trial_comparison_cert_verifier_browsertest.cc 5.76 KB