瀏覽代碼

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

Jakob Borg 5 年之前
父節點
當前提交
5e1f39b6f6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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{