Skip to content

Commit a530d99

Browse files
committed
fix test.
1 parent 46d2c18 commit a530d99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/mysql/runner_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ import (
2121
"database/sql"
2222
"errors"
2323
"fmt"
24+
"testing"
25+
2426
"github.com/acmestack/gobatis"
2527
"github.com/acmestack/gobatis/datasource"
2628
"github.com/acmestack/gobatis/factory"
2729
_ "github.com/go-sql-driver/mysql"
28-
"testing"
2930
)
3031

3132
type TestTable struct {
@@ -62,7 +63,7 @@ func initTest(t *testing.T) (err error) {
6263
"PRIMARY KEY (`id`)" +
6364
") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;"
6465

65-
db, err := sql.Open("mysql", "test:test@tcp(localhost8:3306)/test?charset=utf8")
66+
db, err := sql.Open("mysql", "test:test@tcp(localhost:3306)/test?charset=utf8")
6667
if err != nil {
6768
t.Fatal(err)
6869
}

0 commit comments

Comments
 (0)