Runs: running run and stage durations tick live
One shared ElapsedClock (single timer, only while a visible running item is watched and the app is visible; cadence follows formatDuration precision) and a LiveElapsedBuilder that repaints only its own text. Running list rows, the Summary Duration and running timeline visits tick. A stage start re-reads the open detail, since step deltas carry no started_at. Fixture ?running=1 for captures.
This commit is contained in:
@@ -163,7 +163,10 @@ void main() {
|
||||
'totalRebuildsPerMinute=${rebuilds.total} '
|
||||
'timersScheduledPerMinute=$perMinute',
|
||||
);
|
||||
expect(active, lessThanOrEqualTo(1));
|
||||
// One shared minute clock for the relative times and one shared clock
|
||||
// for the 20 running rows' ticking durations; never a timer per row.
|
||||
expect(active, lessThanOrEqualTo(2));
|
||||
expect(perMinute, lessThanOrEqualTo(61));
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
expect(timers.active, 0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user