// Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved. package tick import ( "log" //"market" "database/sql" "testing" ) func TestBty(t *testing.T) { db, _ = sql.Open("mysql", "root:123456@tcp(localhost:3306)/tick_server?charset=utf8") conf := &DsConf{} ds, err := newBtyDS(conf) if err != nil { t.Fatal(err) } go ds.Run() chmk := ds.GetMarket() for mk := range chmk { log.Println(mk) } log.Println("@@@@@@@:go here") }