lib/fs: Fix WatchRename test for FreeBSD (fixes #6613)

This commit is contained in:
Jakob Borg 2020-08-03 23:24:01 +02:00
parent b2e7ecdbf0
commit 89946b21be

View File

@ -133,7 +133,7 @@ func TestWatchRename(t *testing.T) {
destEvent := Event{new, Remove}
// Only on these platforms the removed file can be differentiated from
// the created file during renaming
if runtime.GOOS == "windows" || runtime.GOOS == "linux" || runtime.GOOS == "solaris" {
if runtime.GOOS == "windows" || runtime.GOOS == "linux" || runtime.GOOS == "solaris" || runtime.GOOS == "freebsd" {
destEvent = Event{new, NonRemove}
}
expectedEvents := []Event{