Skip to content

Commit

Permalink
Leave not logout
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Feb 23, 2024
1 parent b61d441 commit 077d8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/room_keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func TestRoomKeyIsCycledOnMemberLeaving(t *testing.T) {
}, func() {
// now Charlie is going to leave the room, causing her user ID to appear in device_lists.left
// which should trigger a new room key to be sent (on message send)
tc.Charlie.MustDo(t, "POST", []string{"_matrix", "client", "v3", "logout"}, client.WithJSONBody(t, map[string]any{}))
tc.Charlie.MustDo(t, "POST", []string{"_matrix", "client", "v3", "rooms", roomID, "leave"}, client.WithJSONBody(t, map[string]any{}))

// we don't know how long it will take for the device list update to be processed, so wait 1s
time.Sleep(time.Second)
Expand Down

0 comments on commit 077d8d3

Please sign in to comment.