feat: Remove locking from the BTBV trust manager
This commit is contained in:
1 parent
dad85b8467
commit
ed0701bdcd
4 files changed
+102
-114
No files matched your search
@@ -1529,9 +1529,14 @@ void main() {
|
||||
expect(bobResult1.error, null);
|
||||
|
||||
// Bob should have some trust state
|
||||
expect(
|
||||
(bobManager.trustManager as TestingTrustManager).devices[aliceJid],
|
||||
await aliceManager.getDeviceId(),
|
||||
await bobManager.withTrustManager(
|
||||
bobJid,
|
||||
(tm) async {
|
||||
expect(
|
||||
(tm as TestingTrustManager).devices[aliceJid],
|
||||
await aliceManager.getDeviceId(),
|
||||
);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user