mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
lib/fs: Fix WatchRename test for FreeBSD (fixes #6613)
This commit is contained in:
parent
96e197e502
commit
5e1f39b6f6
@ -133,7 +133,7 @@ func TestWatchRename(t *testing.T) {
|
|||||||
destEvent := Event{new, Remove}
|
destEvent := Event{new, Remove}
|
||||||
// Only on these platforms the removed file can be differentiated from
|
// Only on these platforms the removed file can be differentiated from
|
||||||
// the created file during renaming
|
// 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}
|
destEvent = Event{new, NonRemove}
|
||||||
}
|
}
|
||||||
expectedEvents := []Event{
|
expectedEvents := []Event{
|
||||||
|
Loading…
Reference in New Issue
Block a user