logdb/logdb_test.go

22 lines
356 B
Go
Raw Normal View History

2018-12-10 06:06:37 +00:00
package logdb
import (
"testing"
_ "github.com/go-sql-driver/mysql"
)
// charset: utf8mb4
// db: test_log
// hosts: [192.168.6.101, 192.168.6.102, 192.168.6.103, 192.168.6.104, 192.168.6.105]
// password: ag-spider-log
// port: 4000
// user: spider
func TestSelect(t *testing.T) {
2018-12-10 06:10:24 +00:00
2018-12-10 06:06:37 +00:00
logdb := NewLogDB("logdb.yaml")
logdb.Connect()
2018-12-10 06:10:24 +00:00
t.Error(logdb)
2018-12-10 06:06:37 +00:00
}