fix: resolve dart analyze failures in chaos_monkey_test.dart #458

Merged
guettlibot merged 2 commits from refs/pull/458/head into main 2026-06-06 03:29:42 +00:00
guettlibot commented 2026-06-05 21:31:14 +00:00 (Migrated from codeberg.org)

Summary

Fixes CI failures introduced by PR #455 (chaos monkey backend test).

The dart analyze --fatal-infos step in CI was failing because test/backend/chaos_monkey_test.dart had:

  • avoid_print (5 instances): replaced print(...) with stdout.writeln(...)dart:io is already imported
  • avoid_redundant_argument_values: removed redundant '' from _env('CHAOS_SEED', '') since '' is the parameter default
  • dart format: applied formatter fixes (trailing commas, line wrapping for long connectToServer calls)

Verification

$ nix develop --command bash -c "fvm dart analyze --fatal-infos"
Analyzing 456...
No issues found!

$ nix develop --command bash -c "fvm dart format --output=none --set-exit-if-changed test/backend/chaos_monkey_test.dart"
Formatted 1 file (0 changed) in 0.01 seconds.

Closes #456

🤖 Generated with Claude Code

## Summary Fixes CI failures introduced by PR #455 (chaos monkey backend test). The `dart analyze --fatal-infos` step in CI was failing because `test/backend/chaos_monkey_test.dart` had: - **`avoid_print`** (5 instances): replaced `print(...)` with `stdout.writeln(...)` — `dart:io` is already imported - **`avoid_redundant_argument_values`**: removed redundant `''` from `_env('CHAOS_SEED', '')` since `''` is the parameter default - **`dart format`**: applied formatter fixes (trailing commas, line wrapping for long `connectToServer` calls) ## Verification ``` $ nix develop --command bash -c "fvm dart analyze --fatal-infos" Analyzing 456... No issues found! $ nix develop --command bash -c "fvm dart format --output=none --set-exit-if-changed test/backend/chaos_monkey_test.dart" Formatted 1 file (0 changed) in 0.01 seconds. ``` Closes #456 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.