--- id: "bug-410" status: "fixed" status_updated: "2026-09-24" status_note: "" component: "controller" severity: "unknown" timestamp: "2026-06-11T13:30:00Z" last_seen: "2026-09-19T09:00:00Z" occurrences: 1 files: ["src/controller/testsuite/test_commit_engine.c"] tags: ["controller", "testsuite", "repl", "return-convention"] related: [] legacy: true --- # bug-410: test_commit_engine fixture: Expected 0 Was 1 from repl_add_standby ## Description test_commit_engine fixture: Expected 0 Was 1 from repl_add_standby ## Environment _Not recorded (migrated from buglog.json)._ ## Reproduction _Not recorded (migrated from buglog.json)._ ## Root cause repl_add_standby returns the slot index (>=0) on success, not 0 — second add legitimately returns 1 ## Fix fixture asserts TEST_ASSERT_EQUAL_INT(i, repl_add_standby(...)) per standby slot ## Verification _Not recorded (migrated from buglog.json)._ ## References _Not recorded (migrated from buglog.json)._