Add path tag to tail tests
This commit is contained in:
parent
9491cd91cd
commit
7591a50d52
|
@ -43,6 +43,7 @@ func TestTailFromBeginning(t *testing.T) {
|
||||||
},
|
},
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"mytag": "foo",
|
"mytag": "foo",
|
||||||
|
"path": tmpfile.Name(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,6 +85,7 @@ func TestTailFromEnd(t *testing.T) {
|
||||||
},
|
},
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"othertag": "foo",
|
"othertag": "foo",
|
||||||
|
"path": tmpfile.Name(),
|
||||||
})
|
})
|
||||||
assert.Len(t, acc.Metrics, 1)
|
assert.Len(t, acc.Metrics, 1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue