Skip to content

Flaky test: chat_delegate::tests::clear_ensure_subscription_sent_is_scoped_to_supplied_vk #296

Description

@sanity

Problem

Observed during the PR #294 review: components::app::chat_delegate::tests::clear_ensure_subscription_sent_is_scoped_to_supplied_vk (ui/src/components/app/chat_delegate.rs) failed once in a parallel full-suite cargo test -p river-ui --bins run, then passed in isolation, passed with --test-threads=1, and passed on a re-run.

This is pre-existing and unrelated to PR #294 — that PR does not touch chat_delegate.rs.

Hypothesis

Classic shared-global-mutable-state flake: the test asserts on a global signal/state that another test mutates concurrently. The pass-in-isolation / pass-with---test-threads=1 behaviour points at cross-test interference rather than a logic bug in the test itself.

Suggested fix

Isolate the global state the test depends on (per-test reset, or a test-local scope), or serialize the affected tests. Per the project's "flaky tests are broken tests" rule this should be fixed at the root, not retried.

[AI-assisted - Claude]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions