 
         client.fetchRooms(updatedSince: nil, realm: realm)
 
-        DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
+        DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
             if let subscription = realm.objects(Subscription.self).first, subscription.roomReadOnly == true {
                 expectation.fulfill()
             }
         }
 
-        wait(for: [expectation], timeout: 3)
+        wait(for: [expectation], timeout: 5)
     }
 
     func testFetchRoles() {


        client.fetchSubscriptions(updatedSince: nil, realm: realm)

        DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
            if realm.objects(Subscription.self).count == 2 {
                expectation.fulfill()
            }
        }

        wait(for: [expectation], timeout: 3)
    }

    func testSubscriptionsUpdate() {


        client.fetchSubscriptions(updatedSince: nil, realm: realm)

        DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
            if let subscription = realm.objects(Subscription.self).first, subscription.auth == nil {
                expectation.fulfill()
            }
        }

        wait(for: [expectation], timeout: 5)
    }

    func testSubscriptionsRoomMapping() {
