Commit 23e1179d authored by matrushka's avatar matrushka

Removing the tmp directory after the TestInvalidKeyFiles test.

License: MIT
Signed-off-by: default avatarmatrushka <barisgumustas@gmail.com>
parent 4bbaa2aa
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
"os"
"path/filepath" "path/filepath"
"sort" "sort"
"testing" "testing"
...@@ -151,6 +152,8 @@ func TestInvalidKeyFiles(t *testing.T) { ...@@ -151,6 +152,8 @@ func TestInvalidKeyFiles(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
defer os.RemoveAll(tdir)
ks, err := NewFSKeystore(tdir) ks, err := NewFSKeystore(tdir)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment