test(outputs.sql): Fix clean up of sql database file (#13918)

This commit is contained in:
Joshua Powers 2023-09-14 12:09:06 -06:00 committed by GitHub
parent f43427267d
commit ae9668b805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -15,10 +15,8 @@ import (
)
func TestSqlite(t *testing.T) {
outDir := os.TempDir()
defer os.Remove(outDir)
dbfile := filepath.Join(outDir, "db")
dbfile := filepath.Join(os.TempDir(), "db")
defer os.Remove(dbfile)
// Use the plugin to write to the database address :=
// fmt.Sprintf("file:%v", dbfile)