// Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved. package tick import ( "log" //"market" "testing" ) func TestSinFuture(t *testing.T) { sinaConf := &DsConf{ User: "", PassWord: "", Url: "http://hq.sinajs.cn/list", SaveDir: "./", Run: true, } ds, _ := newSinaFutureDS(sinaConf) //, err //if err != nil { //t.Fatal(err) //} go ds.Run() chmk := ds.GetMarket() for mk := range chmk { log.Println(getTime(mk.Timestamp), mk.InsId) } log.Println("@@@@@@@:go here") }