0.3.0 unit tests: rethinkdb, twemproxy, zfs
This commit is contained in:
@@ -36,7 +36,7 @@ func TestAddEngineStats(t *testing.T) {
|
||||
engine.AddEngineStats(keys, &acc, tags)
|
||||
|
||||
for _, metric := range keys {
|
||||
assert.True(t, acc.HasIntValue(metric))
|
||||
assert.True(t, acc.HasIntField("rethinkdb_engine", metric))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ func TestAddEngineStatsPartial(t *testing.T) {
|
||||
engine.AddEngineStats(keys, &acc, tags)
|
||||
|
||||
for _, metric := range missing_keys {
|
||||
assert.False(t, acc.HasIntValue(metric))
|
||||
assert.False(t, acc.HasIntField("rethinkdb", metric))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,6 +107,6 @@ func TestAddStorageStats(t *testing.T) {
|
||||
storage.AddStats(&acc, tags)
|
||||
|
||||
for _, metric := range keys {
|
||||
assert.True(t, acc.HasIntValue(metric))
|
||||
assert.True(t, acc.HasIntField("rethinkdb", metric))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user