Better offline handling, implemented the local portion of delete, and maybe fixed the bug when running tests on github actions

This commit is contained in:
David Dworken
2022-09-18 09:42:24 -07:00
parent 6c6acc5473
commit 1bf510ff8a
5 changed files with 59 additions and 7 deletions

View File

@ -72,7 +72,7 @@ func BackupAndRestoreWithId(t *testing.T, id string) func() {
touchFile(path.Join(homedir, ".zsh_history"))
return func() {
for _, file := range renameFiles {
_ = os.Rename(file+id+".bak", file)
checkError(os.Rename(file+id+".bak", file))
}
for _, file := range copyFiles {
checkError(copy(file+id+".bak", file))