Skip to content

Commit

Permalink
👷 Use inmemory sqlite for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Oct 19, 2023
1 parent ab4adb6 commit d5b204c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/sql_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d5b204c

Please sign in to comment.