Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansr committed Nov 4, 2021
1 parent fe13da4 commit 6a4f03e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libbeat/template/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ func TestProcessDefaultField(t *testing.T) {
)

fields := mapping.Fields{
// By default foo will be included in default_field.
// By default foo will be excluded in default_field.
mapping.Field{
Name: "foo",
Type: "keyword",
Expand Down Expand Up @@ -694,8 +694,9 @@ func TestProcessDefaultField(t *testing.T) {
},
// Check that multi_fields are correctly stored in defaultFields.
mapping.Field{
Name: "qux",
Type: "keyword",
Name: "qux",
Type: "keyword",
DefaultField: &enableDefaultField,
MultiFields: []mapping.Field{
{
Name: "text",
Expand Down Expand Up @@ -742,7 +743,6 @@ func TestProcessDefaultField(t *testing.T) {

expectedFields := []string{
"bar",
"foo",
"nested.bar",
"nested.foo",
"qux",
Expand All @@ -752,7 +752,7 @@ func TestProcessDefaultField(t *testing.T) {
}
sort.Strings(defaultFields)
sort.Strings(expectedFields)
assert.Equal(t, defaultFields, expectedFields)
assert.Equal(t, expectedFields, defaultFields)
}

func TestProcessWildcardOSS(t *testing.T) {
Expand Down

0 comments on commit 6a4f03e

Please sign in to comment.