fix: (potentially) a race in the archive test
This commit is contained in:
parent
50ef19b8a8
commit
d5fd03d52d
|
|
@ -340,9 +340,9 @@ void main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('get archive', () async {
|
test('get archive', () async {
|
||||||
|
await matrix.abortSync();
|
||||||
final archive = await matrix.loadArchive();
|
final archive = await matrix.loadArchive();
|
||||||
|
|
||||||
await Future.delayed(Duration(milliseconds: 50));
|
|
||||||
expect(archive.length, 2);
|
expect(archive.length, 2);
|
||||||
expect(archive[0].id, '!5345234234:example.com');
|
expect(archive[0].id, '!5345234234:example.com');
|
||||||
expect(archive[0].membership, Membership.leave);
|
expect(archive[0].membership, Membership.leave);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue