This commit is contained in:
Aliaksandr Valialkin 2024-05-20 23:27:21 +02:00
parent c5734e18b9
commit 15c6bf4498
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -70,7 +70,7 @@ func TestPipeFields(t *testing.T) {
})
// single row, mention existing field multiple times
f("fileds a, a", [][]Field{
f("fields a, a", [][]Field{
{
{"_msg", `{"foo":"bar"}`},
{"a", `test`},
@ -111,24 +111,24 @@ func TestPipeFields(t *testing.T) {
},
{
{"c", "dss"},
{"b", "df"},
{"d", "df"},
},
}, [][]Field{
{
{"a", `test`},
{"b", `test`},
{"b", ``},
},
{
{"a", `foobar`},
{"b", `foobar`},
},
{
{"a", ""},
{"b", ""},
},
{
{"a", ""},
{"b", "df"},
{"b", "baz"},
},
{
{"a", ""},
{"b", ""},
},
})
}