Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit d86f19c

Browse files
author
Eric Crosson
committed
Perform smarter cleanup after running tests
1 parent bcac135 commit d86f19c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git_ledger_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func pushGitLedger() {
2020

2121
// Remove the temporary git-ledger and replace it with the backup
2222
func popGitLedger() {
23+
os.Remove(Path())
2324
os.Rename(fmt.Sprintf("%s.backup", Path()), Path())
2425
}
2526

0 commit comments

Comments
 (0)