Skip to content

Commit

Permalink
handle message with empty body
Browse files Browse the repository at this point in the history
  • Loading branch information
adi.yaskolka committed Aug 29, 2019
1 parent fba5de1 commit 48317a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/bus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func TestFailHandlerInvokeOfMessageWithEmptyBody(t *testing.T) {
If a "normal" handler is registered for this type of message, the bus must reject this message.
*/
metrics.ResetRejectedMessagesCounter()
b := createBusWithConfig(testSvc5, "grabbit-dead1", true, true,
b := createBusWithConfig(testSvc1, "grabbit-dead1", true, true,
gbus.BusConfiguration{MaxRetryCount: 0, BaseRetryDuration: 0})

proceed := make(chan bool)
Expand Down Expand Up @@ -589,7 +589,7 @@ func TestFailHandlerInvokeOfMessageWithEmptyBody(t *testing.T) {
headersMap := make(map[string]interface{})
headersMap["x-msg-name"] = Command3{}.SchemaName()
cmd := amqp.Publishing{Headers: headersMap}
err = ch.Publish("", testSvc5, true, false, cmd)
err = ch.Publish("", testSvc1, true, false, cmd)
if err != nil {
t.Error("couldnt send message on rabbitmq channel")
}
Expand Down

0 comments on commit 48317a1

Please sign in to comment.