diff --git a/test/screens/export_test.dart b/test/screens/export_test.dart index eaabe3c3..52e797a6 100644 --- a/test/screens/export_test.dart +++ b/test/screens/export_test.dart @@ -54,7 +54,10 @@ void main() { ); await connector.connectReview(); final end = DateTime.now().add(const Duration(seconds: 8)); - while (connector.selfName == null && DateTime.now().isBefore(end)) { + // The contacts come after the channel and queue sync: waiting for the + // name alone loses the race when the whole suite loads the machine. + while ((connector.selfName == null || !connector.hasLoadedContacts) && + DateTime.now().isBefore(end)) { await Future.delayed(const Duration(milliseconds: 25)); } });