Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
eapache committed Apr 10, 2015
1 parent b0438f2 commit 5d12edf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions consumer_metadata_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
}

0 comments on commit 5d12edf

Please sign in to comment.