Skip to content

Commit

Permalink
Fix TestArchiveThresholds to not leave archive in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed Mar 7, 2022
1 parent 044df35 commit 5ab5c98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ func TestArchiveThresholds(t *testing.T) {
t.Run(testCase.name, func(t *testing.T) {
t.Parallel()

tmpPath := filepath.Join(t.TempDir(), "archive.tar")

cmd := getArchiveCmd(testutils.NewLogger(t), newCommandFlags())
filename, err := filepath.Abs(testCase.testFilename)
require.NoError(t, err)
args := []string{filename}
args := []string{filename, "--archive-out", tmpPath}
if testCase.noThresholds {
args = append(args, "--no-thresholds")
}
Expand Down

0 comments on commit 5ab5c98

Please sign in to comment.