Browse Source

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

Jakob Borg 5 năm trước cách đây
mục cha
commit
5e1f39b6f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/fs/basicfs_watch_test.go

+ 1 - 1
lib/fs/basicfs_watch_test.go

@@ -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{