0.3.0 unit tests: jolokia, kafka_consumer, leofs, lustre2
This commit is contained in:
@@ -85,7 +85,8 @@ func TestRunParserAndGather(t *testing.T) {
|
||||
k.Gather(&acc)
|
||||
|
||||
assert.Equal(t, len(acc.Points), 1)
|
||||
assert.True(t, acc.CheckValue("cpu_load_short", 23422.0))
|
||||
acc.AssertContainsFields(t, "cpu_load_short",
|
||||
map[string]interface{}{"value": float64(23422)})
|
||||
}
|
||||
|
||||
func saramaMsg(val string) *sarama.ConsumerMessage {
|
||||
|
||||
Reference in New Issue
Block a user