mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 13:52:46 +00:00
Try to fix HTTP 500s on /members
(#2581)
This commit is contained in:
parent
f0c8a03649
commit
c7d978274d
4 changed files with 20 additions and 10 deletions
|
@ -60,6 +60,9 @@ func TestMembershipTable(t *testing.T) {
|
|||
// This inserts a left user to the room
|
||||
err = tab.InsertMembership(ctx, nil, 1, stateKeyNID, true)
|
||||
assert.NoError(t, err)
|
||||
// We must update the membership with a non-zero event NID or it will get filtered out in later queries
|
||||
_, err = tab.UpdateMembership(ctx, nil, 1, stateKeyNID, userNIDs[0], tables.MembershipStateLeaveOrBan, 1, false)
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
// ... so this should be false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue