Commit fixes for MQTT

This commit is contained in:
Asim
2016-04-25 22:15:01 +01:00
parent 48d191c3eb
commit 545cd22daf
3 changed files with 45 additions and 18 deletions

View File

@@ -33,7 +33,8 @@ func TestMQTTMock(t *testing.T) {
func TestMQTTHandler(t *testing.T) {
p := &mqttPub{
msg: newMockMessage("mock", 0, false, []byte(`hello`)),
topic: "mock",
msg: &broker.Message{Body: []byte(`hello`)},
}
if p.Topic() != "mock" {