Browse Source

Update metadata_version_test.go

pull/7231/head
chrislu 2 months ago
parent
commit
7c82d5e7a0
  1. 4
      test/kafka/metadata_version_test.go

4
test/kafka/metadata_version_test.go

@ -9,7 +9,7 @@ import (
func TestMetadataVersionComparison(t *testing.T) { func TestMetadataVersionComparison(t *testing.T) {
// Create handler // Create handler
handler := protocol.NewHandler()
handler := protocol.NewTestHandler()
// Add test topic // Add test topic
handler.AddTopicForTesting("test-topic", 1) handler.AddTopicForTesting("test-topic", 1)
@ -33,5 +33,5 @@ func TestMetadataVersionComparison(t *testing.T) {
fmt.Printf("Metadata v1 response (%d bytes): %x\n", len(v1Response), v1Response) fmt.Printf("Metadata v1 response (%d bytes): %x\n", len(v1Response), v1Response)
// Compare lengths // Compare lengths
fmt.Printf("Length difference: v1 is %d bytes longer than v0\n", len(v1Response) - len(v0Response))
fmt.Printf("Length difference: v1 is %d bytes longer than v0\n", len(v1Response)-len(v0Response))
} }
Loading…
Cancel
Save