From 973102c5efbc4d25b487d676661b2b7e6a6713a9 Mon Sep 17 00:00:00 2001 From: Paul Kuruvilla Date: Mon, 29 Apr 2024 18:34:51 +0100 Subject: [PATCH] fixes https://github.com/codecrafters-io/cli/issues/11 --- internal/commands/test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/commands/test.go b/internal/commands/test.go index 577671c..45af818 100644 --- a/internal/commands/test.go +++ b/internal/commands/test.go @@ -74,6 +74,8 @@ func TestCommand(ctx context.Context) (err error) { return fmt.Errorf("make a repo temp copy: %w", err) } + defer os.RemoveAll(tmpDir) + logger.Debug().Msgf("copied repository to temp directory: %s", tmpDir) tempBranchName := "cli-test-" + strconv.FormatInt(time.Now().UnixMilli(), 10)