first commit.
way too late.
This commit is contained in:
commit
dbbfaf99b6
15 files changed
+757
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package nsqsubscriber
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/bitly/go-nsq"
|
||||
)
|
||||
|
||||
func TestNSQMessage(t *testing.T) {
|
||||
m := &nsq.Message{Body: []byte("hello world"), Timestamp: 10}
|
||||
nsqM := &NSQMessage{m}
|
||||
if string(nsqM.Body()) != "hello world" {
|
||||
t.Error()
|
||||
}
|
||||
|
||||
if nsqM.Timestamp() != 10 {
|
||||
t.Error()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user