|
|
@ -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)) |
|
|
} |
|
|
} |