about summary refs log tree commit diff
path: root/Tests
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2024-01-05 12:22:42 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2024-01-05 12:22:42 +0100
commitf215dca816745ef54f5436d6cea9350d6dcd3982 (patch)
tree2749bcd4d1297943478b6080d5688ef642ca1d40 /Tests
parentToObject and ToJson for MatrixException (diff)
downloadLibMatrix-f215dca816745ef54f5436d6cea9350d6dcd3982.tar.xz
Cleanup
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibMatrix.Tests/Tests/RoomTests.cs11
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);
     }
 }