Skip to content

Commit

Permalink
use the existing testing funcs for specific versions/compressions alg…
Browse files Browse the repository at this point in the history
…orithms
  • Loading branch information
d1egoaz committed Jan 17, 2020
1 parent 6a7ba36 commit 864d473
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 51 deletions.
15 changes: 15 additions & 0 deletions functional_consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,21 @@ func TestVersionMatrixLZ4(t *testing.T) {
consumeMsgs(t, testVersions, producedMessages)
}

// Support for zstd codec was introduced in v2.1.0.0
func TestVersionMatrixZstd(t *testing.T) {
setupFunctionalTest(t)
defer teardownFunctionalTest(t)

// Produce lot's of message with all possible combinations of supported
// protocol versions starting with v2.1.0.0 (first where zstd was supported)
testVersions := versionRange(V2_1_0_0)
allCodecs := []CompressionCodec{CompressionZSTD}
producedMessages := produceMsgs(t, testVersions, allCodecs, 17, 100, false)

// When/Then
consumeMsgs(t, testVersions, producedMessages)
}

func TestVersionMatrixIdempotent(t *testing.T) {
setupFunctionalTest(t)
defer teardownFunctionalTest(t)
Expand Down
51 changes: 0 additions & 51 deletions zstd_test.go

This file was deleted.

0 comments on commit 864d473

Please sign in to comment.