cleanup tempfiles for client_test
@@ -654,6 +654,7 @@ func testInitRepoSigningKeys(t *testing.T, rootType string, serverManagesSnapsho
// Temporary directory where test files will be created
tempBaseDir, err := ioutil.TempDir("", "notary-test-")
require.NoError(t, err, "failed to create a temporary directory: %s", err)
+ defer os.RemoveAll(tempBaseDir)
repo, _, rootPubKeyID := createRepoAndKey(
t, data.ECDSAKey, tempBaseDir, "docker.com/notary", ts.URL)
@@ -3606,6 +3607,7 @@ func TestRemoveDelegationErrorWritingChanges(t *testing.T) {
func TestClientInvalidURL(t *testing.T) {
tempBaseDir, err := ioutil.TempDir("", "notary-test-")
require.NoError(t, err, "failed to create a temporary directory: %s", err)
+ defer os.RemoveAll(tempBaseDir)
r, err := NewFileCachedRepository(
tempBaseDir,
"testGun",
