Skip to content

Commit

Permalink
fix(deps): fix tests to use file rather than memory
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyberezansky committed Nov 26, 2024
1 parent 11ac1ec commit dfbf883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wekafs/db/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func setupTestDB(t *testing.T) *SqliteDatabase {
_ = os.Remove(DBPath)
db, err := gorm.Open(sqlite.Open(":memory:"), &gorm.Config{})
db, err := gorm.Open(sqlite.Open("file:"+DBPath), &gorm.Config{})
assert.NoError(t, err)

err = db.AutoMigrate(&PvcAttachment{})
Expand Down

0 comments on commit dfbf883

Please sign in to comment.