From b3afcf46ce3880d53931bdfdcf24a9c14c9db3f8 Mon Sep 17 00:00:00 2001 From: Mike Fridman Date: Thu, 26 Oct 2023 20:15:47 -0400 Subject: [PATCH] use :memory: --- database/store_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/database/store_test.go b/database/store_test.go index c49a6bf4b..1dfc3f97d 100644 --- a/database/store_test.go +++ b/database/store_test.go @@ -51,8 +51,7 @@ func TestDialectStore(t *testing.T) { }) // Test generic behavior. t.Run("sqlite3", func(t *testing.T) { - dir := t.TempDir() - db, err := sql.Open("sqlite", filepath.Join(dir, "sql_embed.db")) + db, err := sql.Open("sqlite", ":memory:") check.NoError(t, err) testStore(context.Background(), t, database.DialectSQLite3, db, func(t *testing.T, err error) { var sqliteErr *sqlite.Error