Skip to content

Commit

Permalink
Assume empty field/tag value is not useful, fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton committed Jul 5, 2018
1 parent 2e724d8 commit a7fb1c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/processors/regex/regex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,15 @@ 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",
Replacement: "x",
ResultKey: "new_field",
},
expectedFields: map[string]interface{}{
"request": "/users/42/",
"new_field": "",
"request": "/users/42/",
},
},
}
Expand Down

0 comments on commit a7fb1c2

Please sign in to comment.