cmd/gomobile: remove temporary files used in tests

Change-Id: I792edeed6bf8309084281eebcdba7d4b6c6a0818
Reviewed-on: https://go-review.googlesource.com/4181
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Shenghou Ma 2015-02-07 19:27:34 -05:00 committed by Minux Ma
parent d0e75fc927
commit c44ea393d0
1 changed files with 2 additions and 0 deletions

View File

@ -29,12 +29,14 @@ func TestWriter(t *testing.T) {
t.Fatal(err)
}
f.Close()
defer os.Remove(f.Name())
apkPath := f.Name() + ".apk"
f, err = os.Create(apkPath)
if err != nil {
t.Fatal(err)
}
defer os.Remove(apkPath)
apkw := NewWriter(f, privKey)