From 86dd450aaf592aa065a17d49d70d9d0352fa5ca3 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Sat, 28 May 2022 08:07:34 -0400 Subject: test: clean up temp dir and repo correctly --- entity/dag/example_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'entity') 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) -- cgit