Simplification of code
This commit is contained in:
parent
ff8a208012
commit
00b16db7cc
|
@ -397,13 +397,12 @@ class CryptoTestHelper(private val mTestHelper: CommonTestHelper) {
|
||||||
|
|
||||||
val sessions = mutableListOf(aliceSession)
|
val sessions = mutableListOf(aliceSession)
|
||||||
for (index in 1 until numberOfMembers) {
|
for (index in 1 until numberOfMembers) {
|
||||||
mTestHelper
|
val session = mTestHelper.createAccount("User_$index", defaultSessionParams)
|
||||||
.createAccount("User_$index", defaultSessionParams)
|
mTestHelper.doSync<Unit>(timeout = 600_000) { room.invite(session.myUserId, null, it) }
|
||||||
.also { session -> mTestHelper.doSync<Unit>(timeout = 600_000) { room.invite(session.myUserId, null, it) } }
|
println("TEST -> " + session.myUserId + " invited")
|
||||||
.also { println("TEST -> " + it.myUserId + " invited") }
|
mTestHelper.doSync<Unit> { session.joinRoom(room.roomId, null, emptyList(), it) }
|
||||||
.also { session -> mTestHelper.doSync<Unit> { session.joinRoom(room.roomId, null, emptyList(), it) } }
|
println("TEST -> " + session.myUserId + " joined")
|
||||||
.also { println("TEST -> " + it.myUserId + " joined") }
|
sessions.add(session)
|
||||||
.also { session -> sessions.add(session) }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return CryptoTestData(roomId, sessions)
|
return CryptoTestData(roomId, sessions)
|
||||||
|
|
Loading…
Reference in New Issue