From 69b932e3bb90bbdfb2ac7668412cfb5e30e8d6cd Mon Sep 17 00:00:00 2001 From: Jacob-bzx Date: Fri, 30 Sep 2022 19:13:27 +0800 Subject: [PATCH] add: unit test for consumer group strategy compatibility --- config_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config_test.go b/config_test.go index d590cf34e..a97ca1885 100644 --- a/config_test.go +++ b/config_test.go @@ -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() {