fix: buggy e2e test
Signed-off-by: Lanna Michalke <l.michalke@famedly.com>
This commit is contained in:
parent
039062bfdf
commit
dd76e652bf
|
|
@ -519,14 +519,13 @@ class Client extends MatrixApi {
|
||||||
/// including all persistent data from the store.
|
/// including all persistent data from the store.
|
||||||
@override
|
@override
|
||||||
Future<void> logoutAll() async {
|
Future<void> logoutAll() async {
|
||||||
try {
|
final futures = <Future>[];
|
||||||
await super.logoutAll();
|
futures.add(super.logoutAll());
|
||||||
} catch (e, s) {
|
futures.add(clear());
|
||||||
|
await Future.wait(futures).catchError((e, s) {
|
||||||
Logs().e('Logout all failed', e, s);
|
Logs().e('Logout all failed', e, s);
|
||||||
rethrow;
|
throw e;
|
||||||
} finally {
|
});
|
||||||
await clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Run any request and react on user interactive authentication flows here.
|
/// Run any request and react on user interactive authentication flows here.
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,10 @@ void test() async {
|
||||||
.deviceKeys[testClientA.deviceID!]!.verified);
|
.deviceKeys[testClientA.deviceID!]!.verified);
|
||||||
assert(!testClientB.userDeviceKeys[TestUser.username]!
|
assert(!testClientB.userDeviceKeys[TestUser.username]!
|
||||||
.deviceKeys[testClientA.deviceID!]!.blocked);
|
.deviceKeys[testClientA.deviceID!]!.blocked);
|
||||||
|
await Future.wait([
|
||||||
|
testClientA.updateUserDeviceKeys(),
|
||||||
|
testClientB.updateUserDeviceKeys(),
|
||||||
|
]);
|
||||||
await testClientA
|
await testClientA
|
||||||
.userDeviceKeys[TestUser.username2]!.deviceKeys[testClientB.deviceID!]!
|
.userDeviceKeys[TestUser.username2]!.deviceKeys[testClientB.deviceID!]!
|
||||||
.setVerified(true);
|
.setVerified(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue