Skip to content

Commit

Permalink
add test for apiversions api
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbing0715 committed Apr 13, 2017
1 parent 0c5a9eb commit 757c6b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,19 @@ var brokerTestTable = []struct {
t.Error("DescribeGroups request got no response!")
}
}},

{"ApiVersionsRequest",
[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
func(t *testing.T, broker *Broker) {
request := ApiVersionsRequest{}
response, err := broker.ApiVersions(&request)
if err != nil {
t.Error(err)
}
if response == nil {
t.Error("ApiVersions request got no response!")
}
}},
}

func validateBrokerMetrics(t *testing.T, broker *Broker, mockBrokerMetrics brokerMetrics) {
Expand Down

0 comments on commit 757c6b7

Please sign in to comment.