Skip to content

Commit

Permalink
ci: flaky replay test (#2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind authored Dec 23, 2024
1 parent 6fe0816 commit 02661eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flutter/test/replay/scheduled_recorder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ class _Fixture {
_completer = Completer();
_tester.binding.scheduleFrame();
await _tester.pumpAndSettle(const Duration(seconds: 1));
await _completer.future.timeout(const Duration(milliseconds: 100),
await _completer.future.timeout(
bool.hasEnvironment('CI')
? Duration(seconds: 1)
: Duration(milliseconds: 100),
onTimeout: imageIsExpected ? null : () {});
}
}
Expand Down

0 comments on commit 02661eb

Please sign in to comment.