summaryrefslogtreecommitdiffstats
path: root/commands/list_test.go
diff options
context:
space:
mode:
authorsatotake <doublequotation@gmail.com>2022-04-27 02:57:04 +0900
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-08 16:56:26 +0200
commite77ca3c105bd64c5077d823d2127f6f812a4f681 (patch)
treeebbe9c310bfab1e34f9fd2e36b738fd2a37d6f11 /commands/list_test.go
parentf2946da9e806c2bafbdd26707fe339db79bd980b (diff)
Add `clock` cli flag
Close #8787
Diffstat (limited to 'commands/list_test.go')
-rw-r--r--commands/list_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/list_test.go b/commands/list_test.go
index 56a3ee9b9..8b2535571 100644
--- a/commands/list_test.go
+++ b/commands/list_test.go
@@ -34,9 +34,9 @@ func TestListAll(t *testing.T) {
hugoCmd := newCommandsBuilder().addAll().build()
cmd := hugoCmd.getCommand()
- defer func() {
+ t.Cleanup(func() {
os.RemoveAll(dir)
- }()
+ })
cmd.SetArgs([]string{"-s=" + dir, "list", "all"})