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

Function TestVersionMatrixIdempotent

functional_consumer_test.go:201–216  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

199}
200
201func TestVersionMatrixIdempotent(t *testing.T) {
202 metrics.UseNilMetrics = true // disable Sarama's go-metrics library
203 t.Cleanup(func() {
204 metrics.UseNilMetrics = false
205 })
206 setupFunctionalTest(t)
207 defer teardownFunctionalTest(t)
208
209 // Produce lot's of message with all possible combinations of supported
210 // protocol versions starting with v0.11 (first where idempotent was supported)
211 testVersions := versionRange(V0_11_0_0)
212 producedMessages := produceMsgs(t, testVersions, []CompressionCodec{CompressionNone}, 17, 100, true)
213
214 // When/Then
215 consumeMsgs(t, testVersions, producedMessages)
216}
217
218func TestReadOnlyAndAllCommittedMessages(t *testing.T) {
219 t.Skip("TODO: TestReadOnlyAndAllCommittedMessages is periodically failing inexplicably.")

Callers

nothing calls this directly

Calls 6

setupFunctionalTestFunction · 0.85
teardownFunctionalTestFunction · 0.85
versionRangeFunction · 0.85
produceMsgsFunction · 0.85
consumeMsgsFunction · 0.85
CleanupMethod · 0.65

Tested by

no test coverage detected