MCPcopy
hub / github.com/IBM/sarama / NewTestConfig

Function NewTestConfig

mocks/mocks.go:103–109  ·  view source on GitHub ↗

NewTestConfig returns a config meant to be used by tests. Due to inconsistencies with the request versions the clients send using the default Kafka version and the response versions our mocks use, we default to the minimum Kafka version in most tests

()

Source from the content-addressed store, hash-verified

101// Due to inconsistencies with the request versions the clients send using the default Kafka version
102// and the response versions our mocks use, we default to the minimum Kafka version in most tests
103func NewTestConfig() *sarama.Config {
104 config := sarama.NewConfig()
105 config.Consumer.Retry.Backoff = 0
106 config.Producer.Retry.Backoff = 0
107 config.Version = sarama.MinVersion
108 return config
109}

Calls 1

NewConfigFunction · 0.92