-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test unread counts in pushes #224
Conversation
This doesn't work because the check for the zero badge push looks like it's getting the content from the previous poke. Inspecting the pokes with -C, I can see they're correct. There are also more lost sequence futures than normal I think.
Turns out I was just confused and asserting the wrong thing. Also this changes the await_event so we wait for the receipt to be sent before continuing.
) | ||
})->then( sub { | ||
# Bob accepts the invite by joining the room | ||
matrix_join_room( $bob, $room_id ) | ||
})->then( sub { | ||
await_event_for( $alice, filter => sub { | ||
return 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably don't want to wait for any possible event, because that leads to fragile tests that get upset about things like spurious m.presence
updates. Consider looking for just m.room.receipt
events maybe?
Otherwise we risk flakiness because of getting presence events
Rather than an empty body, since this will set content-length etc for us. Also fix in the place I copied from...
ptal! :) |
LGTM. Though Jenkins appears unhappy. |
yeah, it needs matrix-org/synapse#705 so will wait until that's merged |
Tests that unread counts increase and decrease correctly once messages and read receipts are sent respectively. Tests existing behaviour but uses event_id field added in https://github.com/matrix-org/synapse/pull/705/files