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

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

No files matched your search

+2 -2
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...")