(t *testing.T)
| 2088 | } |
| 2089 | |
| 2090 | func Test_stickyBalanceStrategy_Plan_data_race(t *testing.T) { |
| 2091 | for range 1000 { |
| 2092 | go func(bs BalanceStrategy) { |
| 2093 | members := map[string]ConsumerGroupMemberMetadata{ |
| 2094 | "m1": { |
| 2095 | Version: 3, |
| 2096 | Topics: []string{"topic"}, |
| 2097 | }, |
| 2098 | } |
| 2099 | topics := map[string][]int32{ |
| 2100 | "topic": {0, 1, 2}, |
| 2101 | } |
| 2102 | _, _ = bs.Plan(members, topics) |
| 2103 | }(NewBalanceStrategySticky()) |
| 2104 | } |
| 2105 | } |
| 2106 | |
| 2107 | func BenchmarkStickAssignmentWithLargeNumberOfConsumersAndTopics(b *testing.B) { |
| 2108 | s := &stickyBalanceStrategy{} |
nothing calls this directly
no test coverage detected