Skip to content

Commit

Permalink
Update mqtt/packet/publish_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yosssi committed Dec 24, 2014
1 parent 90d6609 commit a9331e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mqtt/packet/publish_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ func TestNewPUBLISH_optsNil(t *testing.T) {
nilErrorExpected(t, err)
}
}

func TestNewPUBLISH_validateErr(t *testing.T) {
_, err := NewPUBLISH(&PUBLISHOptions{
QoS: 0x03,
})

if err != ErrInvalidQoS {
invalidError(t, err, ErrInvalidQoS)
}
}

0 comments on commit a9331e2

Please sign in to comment.