Skip to content

Commit

Permalink
amqp: broker unit test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
surendratiwari3 committed Feb 7, 2024
1 parent ff5183f commit 98197a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/broker/amqp/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestNewAMQPBroker(t *testing.T) {
mockAmqpProvider.On("CreateConnectionPool").Return(nil)
mockAmqpProvider.On("GetConnectionFromPool").Return(conn, nil)
mockAmqpProvider.On("ReleaseConnectionToPool", conn).Return(nil)
mockAmqpProvider.On("CreateAmqpChannel", conn).Return(channel, nil)
mockAmqpProvider.On("CreateAmqpChannel", conn, false).Return(channel, nil, nil)
mockAmqpProvider.On("DeclareExchange", channel, exchangeName, exchangeType).Return(nil)
mockAmqpProvider.On("DeclareQueue", channel, mock.Anything, mock.Anything).Return(nil)
mockAmqpProvider.On("QueueExchangeBind", mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil)
Expand Down

0 comments on commit 98197a0

Please sign in to comment.