Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
fix tests for #67 - I can't use items of array after mutate split
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeantet committed Dec 15, 2017
1 parent 248623a commit 7ab0467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processors/filter-mutate/mutate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ func TestReceive(t *testing.T) {

assert.Equal(t, "abc _dEF_GHJ-K_", em.Fields().ValueOrEmptyForPathString("fngsub1"), "fngsub1 should be abc _dEF_GHJ-K_")
assert.Equal(t, "abc _dEF_GHJ-K_", em.Fields().ValueOrEmptyForPathString("fngsub1"), "fngsub1 should be abc _dEF_GHJ-K_")
value, _ := em.Fields().ValueForPath("splitme")
assert.Equal(t, []string{"hello", "my", "name", "is", "yow"}, value, "split ")
values, _ := em.Fields().ValuesForPath("splitme")
assert.Equal(t, []interface{}{"hello", "my", "name", "is", "yow"}, values, "split ")

array, _ := em.Fields().ValueForPath("array_dst")
assert.Equal(t, []string{"apple", "banana", "200", "500"}, array, "array merge")
Expand Down

0 comments on commit 7ab0467

Please sign in to comment.