test: Update configs and revert changes during testing (#5393)

This commit is contained in:
Simon Frei
2018-12-21 11:50:28 +01:00
committed by Jakob Borg
parent 2626143fc5
commit c3b3e02f21
6 changed files with 38 additions and 9 deletions

View File

@@ -28,8 +28,8 @@ func TestOverride(t *testing.T) {
fld := cfg.Folders()["default"]
fld.Type = config.FolderTypeSendOnly
cfg.SetFolder(fld)
os.Rename("h1/config.xml", "h1/config.xml.orig")
defer os.Rename("h1/config.xml.orig", "h1/config.xml")
t.Log(os.Rename("h1/config.xml", "h1/config.xml.orig"))
defer t.Log(os.Rename("h1/config.xml.orig", "h1/config.xml"))
cfg.Save()
log.Println("Cleaning...")