Skip to content

Commit

Permalink
Removing the tmp directory after the TestInvalidKeyFiles test.
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: matrushka <barisgumustas@gmail.com>
  • Loading branch information
matrushka committed Feb 15, 2018
1 parent 4bbaa2a commit 23e1179
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keystore/keystore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"io/ioutil"
"math/rand"
"os"
"path/filepath"
"sort"
"testing"
Expand Down Expand Up @@ -151,6 +152,8 @@ func TestInvalidKeyFiles(t *testing.T) {
t.Fatal(err)
}

defer os.RemoveAll(tdir)

ks, err := NewFSKeystore(tdir)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 23e1179

Please sign in to comment.