Add path tag to tail tests
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user