fix: host filter accepts all and comma lists; hub no longer drops traefik lines after a copytruncate rotation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19afd221e2
commit
7b90d9e40f
15 files changed
+329
-85
No files matched your search
@@ -82,3 +82,13 @@ func TestProbeSourceMissingIsWaiting(t *testing.T) {
|
||||
}
|
||||
_ = time.Now
|
||||
}
|
||||
|
||||
func TestSameHeadCopytruncate(t *testing.T) {
|
||||
old := store.Offset{Inode: 7, Offset: 900, FP: 111, FPLen: 64}
|
||||
if !sameHead(old, store.Offset{Inode: 7, Offset: 500, FP: 111, FPLen: 64}) {
|
||||
t.Fatal("same generation must be a duplicate")
|
||||
}
|
||||
if sameHead(old, store.Offset{Inode: 7, Offset: 500, FP: 222, FPLen: 64}) {
|
||||
t.Fatal("truncated and regrown file must not be a duplicate")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user