From 50ceb9316869353790fc425a2018081ab15ccbe5 Mon Sep 17 00:00:00 2001 From: Jacob <44193366+Jacob-bzx@users.noreply.github.com> Date: Tue, 4 Oct 2022 05:02:52 +0800 Subject: [PATCH] fix(test): consumer group rebalance strategy compatibility (#2353) --- 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() {