aboutsummaryrefslogtreecommitdiff
path: root/quotest
diff options
context:
space:
mode:
Diffstat (limited to 'quotest')
-rw-r--r--quotest/quotest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp
index 6bcd71cd..90a5a69b 100644
--- a/quotest/quotest.cpp
+++ b/quotest/quotest.cpp
@@ -588,6 +588,14 @@ TEST_IMPL(changeName)
if (!rme->newDisplayName()
|| *rme->newDisplayName() != newName)
FAIL_TEST();
+ // State events coming in the timeline are first
+ // processed to change the room state and then as
+ // timeline messages; aboutToAddNewMessages is triggered
+ // when the state is already updated, so check that
+ if (targetRoom->currentState().get<RoomMemberEvent>(
+ localUser->id())
+ != rme)
+ FAIL_TEST();
clog << "Member rename successful, renaming the account"
<< endl;
const auto newN = newName.mid(0, 5);