mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-11-19 19:34:21 +01:00
The 1024 soft limit was exhausted in the 2026-11-16 outage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWXgrX1QxVjqMiz6KFs
20 lines
755 B
Dart
20 lines
755 B
Dart
// The unit mcp/install.sh installs must lift the 1024-fd soft limit: the
|
|
// 2026-11-16 outage ended with the process at 1023 of 1024 fds.
|
|
import 'dart:io';
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
test('[T-nofile] the installed unit raises LimitNOFILE', () {
|
|
final unit = File('mcp/todo-mcp.service').readAsStringSync();
|
|
expect(unit, matches(RegExp(r'^LimitNOFILE=65536$', multiLine: true)));
|
|
final service = unit.split('[Service]')[1].split('[Install]').first;
|
|
expect(service, contains('LimitNOFILE=65536'), reason: 'in [Service]');
|
|
expect(
|
|
File('mcp/install.sh').readAsStringSync(),
|
|
contains(r'install -m 644 "$ROOT/mcp/$UNIT"'),
|
|
reason: 'install.sh ships this very file',
|
|
);
|
|
});
|
|
}
|