ds_bty_test.go 473 B

12345678910111213141516171819202122232425
  1. // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
  2. package tick
  3. import (
  4. "log"
  5. //"market"
  6. "database/sql"
  7. "testing"
  8. )
  9. func TestBty(t *testing.T) {
  10. db, _ = sql.Open("mysql", "root:123456@tcp(localhost:3306)/tick_server?charset=utf8")
  11. conf := &DsConf{}
  12. ds, err := newBtyDS(conf)
  13. if err != nil {
  14. t.Fatal(err)
  15. }
  16. go ds.Run()
  17. chmk := ds.GetMarket()
  18. for mk := range chmk {
  19. log.Println(mk)
  20. }
  21. log.Println("@@@@@@@:go here")
  22. }