diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2024-01-05 12:22:42 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2024-01-05 12:22:42 +0100 |
commit | f215dca816745ef54f5436d6cea9350d6dcd3982 (patch) | |
tree | 2749bcd4d1297943478b6080d5688ef642ca1d40 /Tests/LibMatrix.Tests | |
parent | ToObject and ToJson for MatrixException (diff) | |
download | LibMatrix-f215dca816745ef54f5436d6cea9350d6dcd3982.tar.xz |
Cleanup
Diffstat (limited to '')
-rw-r--r-- | Tests/LibMatrix.Tests/Tests/RoomTests.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Tests/LibMatrix.Tests/Tests/RoomTests.cs b/Tests/LibMatrix.Tests/Tests/RoomTests.cs index 913e044..bec8d18 100644 --- a/Tests/LibMatrix.Tests/Tests/RoomTests.cs +++ b/Tests/LibMatrix.Tests/Tests/RoomTests.cs @@ -52,7 +52,7 @@ public class RoomTests : TestBed<TestFixture> { var hs = await HomeserverAbstraction.GetHomeserver(); var room = await RoomAbstraction.GetTestRoom(hs); Assert.NotNull(room); - var members = room.GetMembersAsync(); + var members = room.GetMembersEnumerableAsync(); Assert.NotNull(members); bool hitMembers = false; await foreach (var member in members) { @@ -248,12 +248,7 @@ public class RoomTests : TestBed<TestFixture> { } await Task.WhenAll(tasks); - var states = room.GetMembersAsync(false); - var count = 0; - await foreach (var state in states) { - count++; - } - // Assert.Equal(++expectedCount, count); - Assert.Equal(16, count); + var states = await room.GetMembersListAsync(false); + Assert.Equal(16, states.Count); } } |