Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(test): consumer group rebalance strategy compatibility #2353

Merged
merged 1 commit into from Oct 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions config_test.go
Expand Up @@ -546,6 +546,14 @@ func TestGroupInstanceIdAndVersionValidation(t *testing.T) {
}
}

func TestConsumerGroupStrategyCompatibility(t *testing.T) {
config := NewTestConfig()
config.Consumer.Group.Rebalance.Strategy = BalanceStrategySticky
if err := config.Validate(); err != nil {
t.Error("Expected passing config validation, got ", err)
}
}

// This example shows how to integrate with an existing registry as well as publishing metrics
// on the standard output
func ExampleConfig_metrics() {
Expand Down