Skip to content

Commit

Permalink
dcrdtest: Cleanup temp dir after test
Browse files Browse the repository at this point in the history
This cleans up a test that disabled automatic cleanup.
  • Loading branch information
matheusd authored and davecgh committed Dec 17, 2023
1 parent 9eb2b56 commit 3d06801
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dcrdtest/rpc_harness_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 3d06801

Please sign in to comment.