ds_dzh_test.go 432 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 TestDzh(t *testing.T) {
  9. conf := &DsConf{
  10. Url: "115.29.238.128:19526",
  11. }
  12. ds, err := newDzhDS(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(getTime(mk.Timestamp), mk.InsId)
  20. }
  21. log.Println("@@@@@@@:go here")
  22. }