From a7fb1c280fd2791110b7873b41f49e10534cd83a Mon Sep 17 00:00:00 2001 From: Greg Linton Date: Thu, 5 Jul 2018 11:05:22 -0600 Subject: [PATCH] Assume empty field/tag value is not useful, fix test --- plugins/processors/regex/regex_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/processors/regex/regex_test.go b/plugins/processors/regex/regex_test.go index e7c15e5aa..723754cad 100644 --- a/plugins/processors/regex/regex_test.go +++ b/plugins/processors/regex/regex_test.go @@ -222,7 +222,7 @@ func TestNoMatches(t *testing.T) { }, }, { - message: "Should emit empty string when result_key given but regex doesn't match", + message: "Shouldn't emit empty string when result_key given but regex doesn't match", converter: converter{ Key: "request", Pattern: "not_match", @@ -230,8 +230,7 @@ func TestNoMatches(t *testing.T) { ResultKey: "new_field", }, expectedFields: map[string]interface{}{ - "request": "/users/42/", - "new_field": "", + "request": "/users/42/", }, }, }