fix: update HeartbeatService tests for new constructor API #20
Reference in New Issue
Block a user
Delete Branch "fix/heartbeat-service-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The HeartbeatService constructor was refactored to use an
on_heartbeatcallback instead of acceptingprovider/modelparameters directly. This PR updates the tests to match the new API.Changes
DummyProviderclass (no longer needed)test_start_is_idempotentto use new constructortest_decide_returns_skip_when_no_tool_call(_decidemethod no longer exists)test_trigger_now_executes_when_decision_is_runto useon_heartbeatcallbacktest_trigger_now_returns_none_when_no_callbackto test new behaviorstart()was not idempotentTest Results
✅ All 3 HeartbeatService tests now pass
Type
🤖 Generated with Claude Code