From 3d06801da3828e2ec40dfc8c1826b5ff98e46734 Mon Sep 17 00:00:00 2001 From: Matheus Degiovani Date: Thu, 14 Dec 2023 09:39:34 -0300 Subject: [PATCH] dcrdtest: Cleanup temp dir after test This cleans up a test that disabled automatic cleanup. --- dcrdtest/rpc_harness_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dcrdtest/rpc_harness_test.go b/dcrdtest/rpc_harness_test.go index 687c176..00cf80d 100644 --- a/dcrdtest/rpc_harness_test.go +++ b/dcrdtest/rpc_harness_test.go @@ -833,4 +833,9 @@ func TestKeepNodeDir(t *testing.T) { t.Fatalf("Unexpected Stat(testNodeDir) error: got %v, want %v", err, nil) } + + // Manually remove the dir to clean up after this test. + if err := os.RemoveAll(mainHarness.testNodeDir); err != nil { + t.Fatalf("Unable to cleanup testNodeDir: %v", err) + } }