Skip to content

Commit 6012c32

Browse files
committed
sqlite3似乎还不可用,先去掉
1 parent d8ff207 commit 6012c32

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: global_test.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ func TestPostgreSQL(t *testing.T) {
3030
testSqlDb(t, db, 30)
3131
}
3232

33-
func TestSqlite3(t *testing.T) {
34-
dbPath := os.Getenv("STORAGE_LOCK_SQLITE3_DB_PATH")
35-
assert.NotEmpty(t, dbPath)
36-
37-
db, err := sql.Open("sqlite3", dbPath)
38-
assert.Nil(t, err)
39-
40-
testSqlDb(t, db, 3)
41-
}
33+
//func TestSqlite3(t *testing.T) {
34+
// dbPath := os.Getenv("STORAGE_LOCK_SQLITE3_DB_PATH")
35+
// assert.NotEmpty(t, dbPath)
36+
//
37+
// db, err := sql.Open("sqlite3", dbPath)
38+
// assert.Nil(t, err)
39+
//
40+
// testSqlDb(t, db, 2)
41+
//}
4242

4343
// 单元测试的公共逻辑提取
4444
func testSqlDb(t *testing.T, db *sql.DB, playNum int) {

0 commit comments

Comments
 (0)