ds_tdx_test.go 464 B

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