1234567891011121314151617181920212223242526272829 |
- // +build linux
- // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
- package tick
- import (
- "log"
- //"market"
- "testing"
- )
- func TestFix(t *testing.T) {
- conf := &DsConf{
- User: "20410767",
- PassWord: "491823",
- CfgFile: "fix-mk.cfg",
- SymbolsFile: "fix-symbols.json",
- }
- ds, err := newFixDS(conf)
- 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")
- }
|