Reach in and update the ignore matcher to one that always does reloads when asked to, instead of checking file mtimes. This is because we will be changing the files on disk often enough that the mtimes will be unreliable to determine change status.
(t testing.TB, m *testModel, fcfg config.FolderConfiguration)
| 248 | // because we will be changing the files on disk often enough that the |
| 249 | // mtimes will be unreliable to determine change status. |
| 250 | func folderIgnoresAlwaysReload(t testing.TB, m *testModel, fcfg config.FolderConfiguration) { |
| 251 | t.Helper() |
| 252 | m.removeFolder(fcfg) |
| 253 | ignores := ignore.New(fcfg.Filesystem(), ignore.WithCache(true), ignore.WithChangeDetector(newAlwaysChanged())) |
| 254 | m.mut.Lock() |
| 255 | m.addAndStartFolderLockedWithIgnores(fcfg, ignores) |
| 256 | m.mut.Unlock() |
| 257 | } |
| 258 | |
| 259 | func basicClusterConfig(local, remote protocol.DeviceID, folders ...string) *protocol.ClusterConfig { |
| 260 | var cc protocol.ClusterConfig |
no test coverage detected