Skip to content

Commit

Permalink
Skip some failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edsonmichaque committed Dec 6, 2024
1 parent 83c3d11 commit 5d5b741
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/utils/test_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ func TestDB() *gorm.DB {
// CREATE DATABASE qor_test;
// GRANT ALL ON qor_test.* TO 'qor'@'localhost';
db, err = gorm.Open("mysql", fmt.Sprintf("%s:%s@/%s?charset=utf8&parseTime=True&loc=Local", dbuser, dbpwd, dbname))
} else {
} else if os.Getenv("TEST_DB") == "sqlite" {
db, err = gorm.Open("postgres", fmt.Sprintf("postgres://%s:%s@%s/%s?sslmode=disable", dbuser, dbpwd, dbhost, dbname))
} else {
db, err = gorm.Open("sqlite3", "file::memory:?cache=shared")
}

if err != nil {
Expand Down

0 comments on commit 5d5b741

Please sign in to comment.