Skip to content

[stable-25.1.x] test(chat): fix races of the chat viewmodel tests with Dispatchers.Default - #7076

Merged
mahibi merged 1 commit into
stable-25.1.xfrom
backport/7075/stable-25.1.x
Nov 19, 2026
Merged

mahibi merged 1 commit into
stable-25.1.xfrom
backport/7075/stable-25.1.x

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 19, 2026

Copy link
Copy Markdown

Backport of PR #7075

…fault

The message pipeline of a viewmodel calls the repository from
Dispatchers.Default. A call during the stubbing of the thread replies
took the stub, so the thread test waited forever for replies. Stub
before any viewmodel exists and fail on a timeout instead of hanging.

After a test, the cancelled pipeline could still use Dispatchers.Main
while it was reset. Clear every viewmodel and wait for its work to
end before resetting Main.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@backportbot
backportbot Bot requested a review from mahibi November 19, 2026 16:03
@backportbot backportbot Bot added 3. to review Waiting for reviews AI assisted labels Nov 19, 2026
@backportbot backportbot Bot added this to the 25.1.1 milestone Nov 19, 2026
@mahibi
mahibi merged commit ff45360 into stable-25.1.x Nov 19, 2026
14 of 16 checks passed
@mahibi
mahibi deleted the backport/7075/stable-25.1.x branch November 19, 2026 16:04
@github-actions

Copy link
Copy Markdown
Contributor

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 805451b
Version 7076
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

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

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant