Skip to content

Make the dashboard auth tests independent of host load #4331

Open

Description

@ScriptedAlchemy

Two tests added by #4301 time out in a full dashboard vitest run on a loaded host (load average about 170), and pass alone:

  • src/data/auth/authenticatedEventSource.dom.test.ts "routes the app event stream through an authenticated fetch" (5030 ms)
  • src/data/auth/credential.dom.test.ts "authenticates requests through the shared JSON transport" (7279 ms)

Taking 5 to 7 s suggests they wait on real timers, retries, or a reconnect delay rather than on the request itself.

Acceptance: find what each test waits on, make it deterministic (fake timers or an explicit resolution signal, not a longer timeout), keep it failing when the guarded behavior breaks (mutation check), and show both pass in a full vitest run under load.

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