Skip to content

Commit

Permalink
fix(test): consumer group rebalance strategy compatibility (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
napallday committed Oct 3, 2022
1 parent eaf1def commit 50ceb93
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 50ceb93

Please sign in to comment.