[ffx][update] Deflake test_wait_for_commit test_wait_for_commit previously relied on a 500ms mock sleep racing against 1000ms and 50ms warning timers, which could flake under host load. Remove the wall-clock race by signaling immediately in the fast-commit case (with a 60s warning duration) and gating the commit signal on CommitEvent::Warning via a oneshot channel in the warning case. Fixed: 583598160 Test: fx bazel test --config=host //src/developer/ffx/plugins/target/update:ffx_update_test --runs_per_test=100 Change-Id: I8cddc3803c2daf458b0c2709290857d29ff3f3ab Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1974104 Fuchsia-Auto-Submit: Colin Nelson <colnnelson@google.com> Lint: android-build-ayeaye@system.gserviceaccount.com <android-build-ayeaye@system.gserviceaccount.com> Commit-Queue: Colin Nelson <colnnelson@google.com> Agent-Code-Review: Fuchsia CL Risk (Advisory) <groupagent-fuchsia-risk@google.com> Risk: Fuchsia CL Risk (Advisory) <groupagent-fuchsia-risk@google.com> Presubmit-Verified: fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Erick Tryzelaar <etryzelaar@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.