Fixed inconsistency between HasIntField and IntField (#2813)
This commit is contained in:
committed by
Daniel Nelson
parent
bfeb3020a3
commit
ac5ac3161f
@@ -42,7 +42,7 @@ func TestAddNonReplStats(t *testing.T) {
|
||||
d.flush(&acc)
|
||||
|
||||
for key, _ := range DefaultStats {
|
||||
assert.True(t, acc.HasIntField("mongodb", key))
|
||||
assert.True(t, acc.HasInt64Field("mongodb", key))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ func TestAddReplStats(t *testing.T) {
|
||||
d.flush(&acc)
|
||||
|
||||
for key, _ := range MmapStats {
|
||||
assert.True(t, acc.HasIntField("mongodb", key))
|
||||
assert.True(t, acc.HasInt64Field("mongodb", key))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@ func TestAddDefaultStats(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
for key, _ := range DefaultStats {
|
||||
assert.True(t, acc.HasIntField("mongodb", key))
|
||||
assert.True(t, acc.HasInt64Field("mongodb", key))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user