Skip to content

Commit

Permalink
ci: rework flakyreplay test
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Dec 30, 2024
1 parent f735167 commit eb870bb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions flutter/test/replay/scheduled_recorder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ class _Fixture {
_completer = Completer();
_tester.binding.scheduleFrame();
await _tester.pumpAndSettle(const Duration(seconds: 1));
await _completer.future.timeout(
bool.hasEnvironment('CI')
? Duration(seconds: 1)
: Duration(milliseconds: 100),
onTimeout: imageIsExpected ? null : () {});
if (imageIsExpected) {
await _completer.future.timeout(Duration(seconds: 10));
}
}
}

Expand Down

0 comments on commit eb870bb

Please sign in to comment.