remove the tmp file

pull/6/head
guangxuli 2016-09-22 23:37:27 +08:00
parent b60df6c312
commit a68812d954
1 changed files with 2 additions and 1 deletions

View File

@ -83,8 +83,9 @@ func TestJwtProvider(t *testing.T) {
if err != nil {
t.Fatalf("Error creating temp file: %v", err)
}
filename := file.Name()
defer os.Remove(filename)
_, err = file.WriteString(jsonKey)
if err != nil {
t.Fatalf("Error writing temp file: %v", err)