Skip to content

test: pin the stuck active-call notification after a service restart (WT-1139) - #366

Merged
SERDUN merged 2 commits into
developfrom
chore/active-call-service-restart-tests
Aug 19, 2026
Merged

test: pin the stuck active-call notification after a service restart (WT-1139)#366
SERDUN merged 2 commits into
developfrom
chore/active-call-service-restart-tests

Conversation

@SERDUN

@SERDUN SERDUN commented Aug 19, 2026

Copy link
Copy Markdown
Member

Overview

After a process kill the system can restart the active-call service with nothing to show. The user is then left with a half-empty ongoing call notification that cannot be swiped away, and Hang up on it does nothing.

This change adds unit tests only, no production code: they reproduce that scenario and pin the current behavior, so the defect stays executable and a change in either direction is visible. The healthy path with real calls is pinned alongside. The expectations for the fixed behavior are also included as commented-out tests with a note to enable them together with the fix and retire the pinning ones; the fix in #346 carries its own version of this file, which supersedes it.

Verified with the Android unit test suite (251 tests, 0 failures). Both directions were proven: a temporary mutation of the restart path turns exactly the three pinning tests red, and the commented-out tests, temporarily enabled, fail on the current code exactly where the defect lives.

SERDUN added 2 commits August 19, 2026 10:49
… restart (WT-1139)

When the system restarts the active-call service after a process kill, the
user is left with a half-empty ongoing call notification that cannot be
swiped away, and Hang up does nothing. These tests reproduce that scenario
and pin the current behavior so the defect is executable and visible; the
upcoming fix is expected to flip the restart-path expectations.

Also enables Android resources in unit tests so notification content can be
built under Robolectric.
…tests (WT-1139)

The tests describing how the restart path must behave after the fix - stop
the empty service and remove its notification - are added commented out,
with a note to enable them together with the fix and retire the tests that
pin the defect. Verified that enabled as-is they fail on the current code
exactly where the defect lives.
@SERDUN
SERDUN merged commit 0286386 into develop Aug 19, 2026
2 checks passed
@SERDUN
SERDUN deleted the chore/active-call-service-restart-tests branch August 19, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant