mirror of https://github.com/mattn/go-sqlite3.git
Clean up more tempfiles
This commit is contained in:
parent
90505effc7
commit
a3efcea001
|
@ -32,6 +32,7 @@ func TempFilename(t *testing.T) string {
|
||||||
func doTestOpen(t *testing.T, option string) (string, error) {
|
func doTestOpen(t *testing.T, option string) (string, error) {
|
||||||
var url string
|
var url string
|
||||||
tempFilename := TempFilename(t)
|
tempFilename := TempFilename(t)
|
||||||
|
defer os.Remove(tempFilename)
|
||||||
if option != "" {
|
if option != "" {
|
||||||
url = tempFilename + option
|
url = tempFilename + option
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue