summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2019-01-05 21:42:49 +0000
committerlhchavez <[email protected]>2019-01-05 22:41:35 +0000
commite9856f2c38b4cf74341dd9706bff79d95ff9cb21 (patch)
tree0c39b5479608d68159472b137fa2385f6c6f1b00
parent7ae106611c9cabe9c3c30343139efbb5d7d6fc27 (diff)
Clean up one leaked temporary directory
A `defer cleanupTestRepo()` was missing.
-rw-r--r--reset_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/reset_test.go b/reset_test.go
index 45777e4..89ebc49 100644
--- a/reset_test.go
+++ b/reset_test.go
@@ -8,6 +8,8 @@ import (
func TestResetToCommit(t *testing.T) {
t.Parallel()
repo := createTestRepo(t)
+ defer cleanupTestRepo(t, repo)
+
seedTestRepo(t, repo)
// create commit to reset to
commitId, _ := updateReadme(t, repo, "testing reset")