Skip to content

Conversation

@mchain0
Copy link
Contributor

@mchain0 mchain0 commented Dec 22, 2025

@github-actions
Copy link

github-actions bot commented Dec 22, 2025

✅ API Diff Results - No breaking changes


📄 View full apidiff report

…vations validation; ring performance improvements
Comment on lines +17 to +35
t.Run("with_nil_config", func(t *testing.T) {
f, err := NewFactory(store, arbiter, lggr, nil)
require.NoError(t, err)
require.NotNil(t, f)
})

t.Run("with_custom_config", func(t *testing.T) {
cfg := &ConsensusConfig{BatchSize: 50}
f, err := NewFactory(store, arbiter, lggr, cfg)
require.NoError(t, err)
require.NotNil(t, f)
})

t.Run("nil_arbiter_returns_error", func(t *testing.T) {
_, err := NewFactory(store, nil, lggr, nil)
require.Error(t, err)
require.Contains(t, err.Error(), "arbiterScaler is required")
})
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor - these tests may be moved to a table tests to avoid repeated logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants