diff --git a/test/encryption/olm_manager_test.dart b/test/encryption/olm_manager_test.dart index 5c2d2f1..1274432 100644 --- a/test/encryption/olm_manager_test.dart +++ b/test/encryption/olm_manager_test.dart @@ -98,5 +98,11 @@ void main() { FakeMatrixApi.calledEndpoints.containsKey('/client/r0/keys/upload'), false); }); + + test('startOutgoingOlmSessions', () async { + // start an olm session.....with ourself! + await client.encryption.olmManager.startOutgoingOlmSessions([client.userDeviceKeys[client.userID].deviceKeys[client.deviceID]]); + expect(client.encryption.olmManager.olmSessions.containsKey(client.identityKey), true); + }); }); }