ds_fix_test.go 537 B

1234567891011121314151617181920212223242526272829
  1. // +build linux
  2. // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
  3. package tick
  4. import (
  5. "log"
  6. //"market"
  7. "testing"
  8. )
  9. func TestFix(t *testing.T) {
  10. conf := &DsConf{
  11. User: "20410767",
  12. PassWord: "491823",
  13. CfgFile: "fix-mk.cfg",
  14. SymbolsFile: "fix-symbols.json",
  15. }
  16. ds, err := newFixDS(conf)
  17. if err != nil {
  18. t.Fatal(err)
  19. }
  20. go ds.Run()
  21. chmk := ds.GetMarket()
  22. for mk := range chmk {
  23. log.Println(getTime(mk.Timestamp), mk.InsId)
  24. }
  25. log.Println("@@@@@@@:go here")
  26. }