no longer duplicate ignored columns here

This commit is contained in:
Kevin Bouwkamp 2015-09-13 20:22:19 -04:00 committed by Cameron Sparr
parent fa5753c579
commit d926a3b5da
1 changed files with 2 additions and 9 deletions

View File

@ -156,14 +156,7 @@ func TestPostgresqlIgnoresUnwantedColumns(t *testing.T) {
err := p.Gather(&acc)
require.NoError(t, err)
var found bool
for _, pnt := range acc.Points {
if pnt.Measurement == "datname" || pnt.Measurement == "datid" || pnt.Measurement == "stats_reset" {
found = true
break
}
for col := range p.IgnoredColumns() {
assert.False(t, acc.HasMeasurement(col))
}
assert.False(t, found)
}