From 5e1f39b6f6bfd8169ee609e62edf9156a06a1599 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 3 Aug 2020 23:24:01 +0200 Subject: [PATCH] lib/fs: Fix WatchRename test for FreeBSD (fixes #6613) --- lib/fs/basicfs_watch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs/basicfs_watch_test.go b/lib/fs/basicfs_watch_test.go index e2f3b68ee..531de7819 100644 --- a/lib/fs/basicfs_watch_test.go +++ b/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{