fix: follow-up OLM matcher

Signed-off-by: The one with the braid <the-one@with-the-braid.cf>
This commit is contained in:
The one with the braid 2023-01-19 17:21:54 +01:00
parent c2e8ecfdff
commit d6a01070e3
1 changed files with 8 additions and 6 deletions

View File

@ -313,13 +313,15 @@ void main() => group('Integration tests', () {
await room.sendTextEvent(testMessage4);
await Future.delayed(Duration(seconds: 7));
expect(
testClientA.encryption!.olmManager
.olmSessions[testClientB.identityKey]!.length,
1);
testClientA.encryption!.olmManager
.olmSessions[testClientB.identityKey]!.length,
olmLengthMatcher,
);
expect(
testClientB.encryption!.olmManager
.olmSessions[testClientA.identityKey]!.length,
1);
testClientB.encryption!.olmManager
.olmSessions[testClientA.identityKey]!.length,
olmLengthMatcher,
);
expect(
testClientA.encryption!.olmManager
.olmSessions[testClientB.identityKey]!.first.sessionId,