1234567891011121314151617181920212223242526 |
- // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
- package tick
- import (
- "log"
- //"market"
- "testing"
- )
- func TestPolo(t *testing.T) {
- conf := &DsConf{
- Url: "218.18.103.38:7709",
- CfgFile: "serverlist.txt",
- }
- ds, err := newPoloDS(conf)
- if err != nil {
- t.Fatal(err)
- }
- go ds.Run()
- chmk := ds.GetMarket()
- for mk := range chmk {
- log.Println(mk.InsId, mk.LastPrice)
- }
- log.Println("@@@@@@@:go here")
- }
|