logdb/logdb_test.go

21 lines
355 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) {
logdb := NewLogDB("logdb.yaml")
t.Error(logdb)
logdb.Connect()
}