Added unit test to ensure correct error is returned

This commit is contained in:
Xavi Ramirez 2017-07-19 00:20:20 +00:00
parent 906f6b94fc
commit f116c752f5

View file

@ -177,6 +177,7 @@ func TestSendingEmpty(t *testing.T) {
t.Log("An error is returned when an empty message is sent")
err = batcher.AddMessage([]byte{}, mockSequence)
assert.Error(err)
assert.Equal(err.Error(), "Empty messages can't be sent")
}
func TestUpdatingSequence(t *testing.T) {