Improve test infrastructure

This commit is contained in:
Brian Brazil
2015-06-20 13:32:32 +01:00
parent 051cd03bbf
commit 9a6754137a
4 changed files with 16 additions and 17 deletions

View File

@@ -91,7 +91,7 @@ func TestPostgresqlDefaultsToAllDatabases(t *testing.T) {
var found bool
for _, pnt := range acc.Points {
if pnt.Name == "xact_commit" {
if pnt.Measurement == "xact_commit" {
if pnt.Tags["db"] == "postgres" {
found = true
break