ds_huobi_test.go 374 B

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