(t testing.TB, w config.Wrapper, fcfg config.FolderConfiguration)
| 358 | } |
| 359 | |
| 360 | func addDevice2(t testing.TB, w config.Wrapper, fcfg config.FolderConfiguration) { |
| 361 | waiter, err := w.Modify(func(cfg *config.Configuration) { |
| 362 | cfg.SetDevice(newDeviceConfiguration(cfg.Defaults.Device, device2, "device2")) |
| 363 | fcfg.Devices = append(fcfg.Devices, config.FolderDeviceConfiguration{DeviceID: device2}) |
| 364 | cfg.SetFolder(fcfg) |
| 365 | }) |
| 366 | must(t, err) |
| 367 | waiter.Wait() |
| 368 | } |
| 369 | |
| 370 | func writeFile(t testing.TB, filesystem fs.Filesystem, name string, data []byte) { |
| 371 | t.Helper() |