fulfill assertion about eventId

This commit is contained in:
Benoit Marty 2021-01-25 16:26:58 +01:00 committed by Benoit Marty
parent 57dba2f29a
commit d6a5b9fb48
1 changed files with 2 additions and 1 deletions

View File

@ -108,6 +108,7 @@ internal class UrlsExtractorTest : InstrumentedTest {
} }
private fun createEvent(body: String): Event = Event( private fun createEvent(body: String): Event = Event(
eventId = "!fake",
type = EventType.MESSAGE, type = EventType.MESSAGE,
content = MessageTextContent( content = MessageTextContent(
msgType = MessageType.MSGTYPE_TEXT, msgType = MessageType.MSGTYPE_TEXT,
@ -119,7 +120,7 @@ internal class UrlsExtractorTest : InstrumentedTest {
return TimelineEvent( return TimelineEvent(
root = this, root = this,
localId = 0L, localId = 0L,
eventId = "", eventId = eventId!!,
displayIndex = 0, displayIndex = 0,
senderInfo = SenderInfo( senderInfo = SenderInfo(
userId = "", userId = "",