From d5b204c802fdc87bbbc03f97da636afb11102b43 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 19 Oct 2023 19:12:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Use=20inmemory=20sqlite=20for=20?= =?UTF-8?q?testing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/storage/sql_storage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/storage/sql_storage_test.go b/internal/storage/sql_storage_test.go index 647d4e63..be943d04 100644 --- a/internal/storage/sql_storage_test.go +++ b/internal/storage/sql_storage_test.go @@ -19,7 +19,7 @@ func TestSqlStorage(t *testing.T) { } var _ = Describe("SqlStorage", func() { - db, err := gorm.Open(sqlite.Open("ticker.db"), &gorm.Config{}) + db, err := gorm.Open(sqlite.Open("file:testdatabase?mode=memory&cache=shared"), &gorm.Config{}) Expect(err).ToNot(HaveOccurred()) var storage = NewSqlStorage(db, "/uploads")