From 5d12edf304463f6b573382a84e6460347f6393f5 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Fri, 10 Apr 2015 12:45:30 -0400 Subject: [PATCH] Add a test --- consumer_metadata_response_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/consumer_metadata_response_test.go b/consumer_metadata_response_test.go index b5a8cc443..1d852fd77 100644 --- a/consumer_metadata_response_test.go +++ b/consumer_metadata_response_test.go @@ -58,4 +58,12 @@ func TestConsumerMetadataResponseSuccess(t *testing.T) { if response.CoordinatorPort != 0xCCDD { t.Error("Decoding produced incorrect coordinator port.") } + + if response.Coordinator.ID() != 0xAB { + t.Error("Decoding produced incorrect coordinator ID.") + } + + if response.Coordinator.Addr() != "foo:52445" { + t.Error("Decoding produced incorrect coordinator address.") + } }