Skip to content

PresencePollingTests.aTickThatChangesNothingTellsNobody is flaky: probe.asked.count races the tick #318

Description

@scgopi

Fails intermittently, ~1 in 5, independent of any recent change:

✘ Test aTickThatChangesNothingTellsNobody() recorded an issue at PresencePollingTests.swift:120:5: Expectation failed: await probe.asked.count == 1
✘ Test run with 1672 tests in 175 suites failed after 63.602 seconds with 1 issue.

Evidence (same machine, same head, 2026-09-06):

Run Result
Full suite, earlier pass
Full suite, later fail
Isolated ×5 1 fail / 4 pass

The failure is an async count expectation racing the tick (failed after 0.001 s), not an assertion about state that changed. Unrelated to #317's diff (reaper/workspace/persistence); flagging it because a flake that fails a full-suite gate costs every loop gating behind one.

Suggested direction: make the probe's ask observable (a continuation/confirmation expectation) rather than polling asked.count immediately after the tick.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions