From d2db6aff19864c1d9fa66f51243d11eaf68bf8a8 Mon Sep 17 00:00:00 2001 From: TeTeHacko Date: Tue, 24 Nov 2026 11:51:15 +0100 Subject: [PATCH] Export test: wait for the contacts, not just the node name setUpAll only waited for selfName; the contacts arrive after the channel and queue sync, so under the load of the full suite the GPX test ran on an empty contact list (fails on upstream/dev too, passes alone). Co-Authored-By: Claude Opus 5.5 --- test/screens/export_test.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); } });