INNER CODE UNIT · Dart
totalCalls
go-vikunja/app · integration_test/concurrent_refresh_test.dart:427
final totalCalls = _RefreshLog.callCount + bgCallCount;
expect(
totalCalls,
equals(2),
reason: 'Both isolates should each make one network refresh call',
);
// The filesystem lock serializes them, so they must NOT overlap.
final bgEvents = (bgData['events'] as List).cast<Map>();
for (final e in bgEvents) {
_RefreshLog.record(
e['id'] as int,
DateTime.fromMicrosecondsSinceEpoch(e['startMicros'] as int),
DateTime.fromMicrosecondsSinceEpoch(e['endMicros'] as int),
);
}
expect(
_RefreshLog.hadOverlap,