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
()
| 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 |
| 103 | func 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 | } |