test, lib/rc: Integration test fixes and polish (#5488)

This commit is contained in:
Simon Frei
2019-01-29 16:59:01 +01:00
committed by Jakob Borg
parent 8815ef922b
commit 657be162dd
2 changed files with 3 additions and 4 deletions

View File

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