first commit.

way too late.
This commit is contained in:
didier amyot committed 2015-01-31 10:19:31 -08:00
commit dbbfaf99b6
15 files changed
+757

No files matched your search

+19
View File
@@ -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()
}
}