fix(symlinkguard): report and remove FIFOs, sockets and devices too (#179) #190
@@ -98,4 +98,7 @@ func TestWatchReportsASpecialFileItCannotRemove(t *testing.T) {
|
|||||||
defer n.mu.Unlock()
|
defer n.mu.Unlock()
|
||||||
assert.Contains(t, n.msgs[0], "ro/f.md")
|
assert.Contains(t, n.msgs[0], "ro/f.md")
|
||||||
assert.Contains(t, n.msgs[0], "special file")
|
assert.Contains(t, n.msgs[0], "special file")
|
||||||
|
for _, m := range n.msgs {
|
||||||
|
assert.NotContains(t, m, "removed", "a file it could not remove was reported as removed")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user