File: tests-use-sqlite.patch

package info (click to toggle)
golang-github-go-xorm-core 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 204 kB
  • ctags: 368
  • sloc: makefile: 4; sh: 1
file content (33 lines) | stat: -rw-r--r-- 674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Use sqlite for tests
Author: Alexandre Viau <alexandre@alexandreviau.net>
Last-Update: 2015-09-04

--- a/db_test.go
+++ b/db_test.go
@@ -12,8 +12,8 @@
 )
 
 var (
-	//dbtype         string = "sqlite3"
-	dbtype         string = "mysql"
+	dbtype         string = "sqlite3"
+	//dbtype         string = "mysql"
 	createTableSql string
 )
 
@@ -541,6 +541,7 @@
 }
 
 func TestExecMap(t *testing.T) {
+    t.Skip("Unsupported test with sqlite")
 	db, err := testOpen()
 	if err != nil {
 		t.Error(err)
@@ -584,6 +585,7 @@
 }
 
 func TestExecStruct(t *testing.T) {
+    t.Skip("Unsupported test with sqlite")
 	db, err := testOpen()
 	if err != nil {
 		t.Error(err)