Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions nsqd/channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ func TestPutMessage(t *testing.T) {
topic := nsqd.GetTopic(topicName)
channel1 := topic.GetChannel("ch")

var id MessageID
msg := NewMessage(id, []byte("test"))
msg := NewMessage(<-nsqd.idChan, []byte("test"))
topic.PutMessage(msg)

outputMsg := <-channel1.memoryMsgChan
Expand All @@ -46,8 +45,7 @@ func TestPutMessage2Chan(t *testing.T) {
channel1 := topic.GetChannel("ch1")
channel2 := topic.GetChannel("ch2")

var id MessageID
msg := NewMessage(id, []byte("test"))
msg := NewMessage(<-nsqd.idChan, []byte("test"))
topic.PutMessage(msg)

outputMsg1 := <-channel1.memoryMsgChan
Expand Down