diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-05-28 08:07:34 -0400 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-05-31 12:04:26 +0200 |
commit | 86dd450aaf592aa065a17d49d70d9d0352fa5ca3 (patch) | |
tree | 2208f6854e7d7bed467d2360818bd5dba4d68344 /entity | |
parent | 8821b67d1bd0809d3fd3e87baf391e07aa54722a (diff) | |
download | git-bug-86dd450aaf592aa065a17d49d70d9d0352fa5ca3.tar.gz |
test: clean up temp dir and repo correctly
Diffstat (limited to 'entity')
-rw-r--r-- | entity/dag/example_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/entity/dag/example_test.go b/entity/dag/example_test.go index 106e359c..948d6aeb 100644 --- a/entity/dag/example_test.go +++ b/entity/dag/example_test.go @@ -344,7 +344,9 @@ func Example_entity() { repoRenePath, _ := os.MkdirTemp("", "") repoIsaacPath, _ := os.MkdirTemp("", "") repoRene, _ := repository.InitGoGitRepo(repoRenePath, gitBugNamespace) + defer repoRene.Close() repoIsaac, _ := repository.InitGoGitRepo(repoIsaacPath, gitBugNamespace) + defer repoIsaac.Close() _ = repoRene.AddRemote("origin", repoIsaacPath) _ = repoIsaac.AddRemote("origin", repoRenePath) |