Skip to content

test: read the channel back when asserting partial updates - #83

Merged
mogita merged 1 commit into
mainfrom
test/channel-partial-update-flake
Aug 17, 2026
Merged

test: read the channel back when asserting partial updates#83
mogita merged 1 commit into
mainfrom
test/channel-partial-update-flake

Conversation

@mogita

Copy link
Copy Markdown
Contributor

testPartialUpdateChannel and testFreezeUnfreezeChannel fail intermittently in CI. Both asserted on the channel carried in the updateChannelPartial response, and that channel can lag the write it just applied: two updates in quick succession come back with the same body and the same updated_at, so the second response is missing the change it made.

A probe of 8 set/unset rounds saw a stale partial-update response 4 times and a stale read-back 0 times, so both tests now assert against a fresh read of the channel.

Verify: ./gradlew test --tests 'io.getstream.ChatChannelIntegrationTest' --rerun. The class failed on both runs before this change and passed on three runs after.

The API behaviour itself is tracked separately and is unchanged here.

The channel returned by updateChannelPartial can lag the write it just
applied, so testPartialUpdateChannel and testFreezeUnfreezeChannel failed
intermittently on the value they had just set. A probe over 8 rounds saw a
stale partial-update response 4 times and a stale read-back none. The two
tests now assert against a fresh read of the channel.
@mogita
mogita merged commit ee0dea6 into mainAug 17, 2026
4 checks passed
@mogita
mogita deleted the test/channel-partial-update-flake branch August 17, 2026 10:57
Sign up for freeto 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

@mogita