ds_cfix_test.go 405 B

12345678910111213141516171819202122232425
  1. // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
  2. package tick
  3. import (
  4. "log"
  5. //"market"
  6. "testing"
  7. )
  8. func TestCFix(t *testing.T) {
  9. conf := &DsConf{
  10. CfgFile: "SessionCfgMk.cfg",
  11. }
  12. ds, err := newCFixDS(conf)
  13. if err != nil {
  14. t.Fatal(err)
  15. }
  16. go ds.Run()
  17. chmk := ds.GetMarket()
  18. for mk := range chmk {
  19. log.Println(mk)
  20. }
  21. log.Println("@@@@@@@:go here")
  22. }