File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,6 @@ func initIntegrationTest() {
79
79
if err != nil {
80
80
log .Fatalf ("sql.Open: %v" , err )
81
81
}
82
- if _ , err = db .Exec ("DROP DATABASE IF EXISTS testgitea" ); err != nil {
83
- log .Fatalf ("db.drop db: %v" , err )
84
- }
85
82
if _ , err = db .Exec ("CREATE DATABASE IF NOT EXISTS testgitea" ); err != nil {
86
83
log .Fatalf ("db.Exec: %v" , err )
87
84
}
@@ -100,9 +97,7 @@ func initIntegrationTest() {
100
97
defer rows .Close ()
101
98
102
99
if rows .Next () {
103
- if _ , err = db .Exec ("DROP DATABASE testgitea" ); err != nil {
104
- log .Fatalf ("db.drop db: %v" , err )
105
- }
100
+ break
106
101
}
107
102
if _ , err = db .Exec ("CREATE DATABASE testgitea" ); err != nil {
108
103
log .Fatalf ("db.Exec: %v" , err )
Original file line number Diff line number Diff line change
1
+ [] # empty
You can’t perform that action at this time.
0 commit comments