fix: (potentially) a race in the archive test

This commit is contained in:
Nicolas Werner 2022-07-19 14:13:35 +02:00
parent 50ef19b8a8
commit d5fd03d52d
1 changed files with 1 additions and 1 deletions

View File

@ -340,9 +340,9 @@ void main() {
});
test('get archive', () async {
await matrix.abortSync();
final archive = await matrix.loadArchive();
await Future.delayed(Duration(milliseconds: 50));
expect(archive.length, 2);
expect(archive[0].id, '!5345234234:example.com');
expect(archive[0].membership, Membership.leave);