Skip to content

Commit

Permalink
fix bug add test
Browse files Browse the repository at this point in the history
  • Loading branch information
郑柏屹 committed Oct 17, 2019
1 parent 144e9f9 commit 3b3b27d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mq/nsq/receiver_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ func TestReceiverManager(t *testing.T) {
select {}
}

func TestReceiverManagerNoLookup(t *testing.T) {
t.Skip("no run this test")
SetLogLv(nsq.LogLevelError)
receiver := NewNsqReceiver(&MqHostConfigs{Nsq: []string{"127.0.0.1:4150", "127.0.0.1:4152"}})
manager := NewReceiverManager(receiver)
manager.Add(GenTask("Topic", "Channel"))
manager.Start()
select {}
}

func GenTask(topic, channel string) NsqHandlerFunc {
return func() (config *MqTaskConfigs) {
return &MqTaskConfigs{
Expand Down

0 comments on commit 3b3b27d

Please sign in to comment.