Skip to content

Conversation

@MadLittleMods
Copy link
Collaborator

@MadLittleMods MadLittleMods commented Oct 1, 2021

More test coverage to ensure we process MSC2716 events in existing room versions

Part of MSC2716: matrix-org/matrix-spec-proposals#2716

Synapse changes in matrix-org/synapse#10962

timeAfterEventBefore := time.Now()

// Create eventIDsAfter to avoid the "No forward extremities left!" 500 error from Synapse
createMessagesInRoom(t, alice, roomID, 2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poor comment wording. You reference eventIDsAfter like it's a variable but it isn't used here?

Do you really mean:

Create events after to avoid the "No forward extremities left!" 500 error from Synapse

?

What does this have to do with room versions anyway? This just seems to be a logic error?

Copy link
Collaborator Author

@MadLittleMods MadLittleMods Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what I mean, but the goal is to match the eventIDsAfter we use in other tests in this same place. The only reason I can't leave it there is because Go complains about it being unused.

createMessageEventsForBatchSendRequest([]string{virtualUserID}, timeAfterEventBefore, 1),
// Status
200,
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this have to do with room versions anyway? This just seems to be a logic error?

It was a logic error only with existing room versions in Synapse.

@MadLittleMods MadLittleMods requested a review from kegsay October 25, 2021 18:35
@MadLittleMods MadLittleMods merged commit fdeba70 into master Oct 26, 2021
@MadLittleMods
Copy link
Collaborator Author

Thanks for the review @kegsay 🦓

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.

3 participants