diff --git a/tests/messages.cpp b/tests/messages.cpp index 536c926d8a5366c7c7e806418df3c0ac5c73af31..262559f18b3c6fc1bdabf63f6a09f0310ccccfca 100644 --- a/tests/messages.cpp +++ b/tests/messages.cpp @@ -836,7 +836,7 @@ TEST(RoomEvents, CallAnswer) "origin_server_ts": 1432735824653, "room_id": "!jEsUZKDJdhlrceRyVU:example.org", "sender": "@example:example.org", - "type": "m.call.invite", + "type": "m.call.answer", "unsigned": { "age": 1234 } @@ -885,7 +885,7 @@ TEST(RoomEvents, CallHangUp) EXPECT_EQ(event.unsigned_data.age, 1234); EXPECT_EQ(event.content.call_id, "c1591052749788"); EXPECT_EQ(event.content.version, 0); - EXPECT_EQ(event.content.reason, CallHangUp::InviteTimeOut); + EXPECT_EQ(event.content.reason, msg::CallHangUp::Reason::InviteTimeOut); EXPECT_EQ(data, json(event)); }