ovh / venom

🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions
Apache License 2.0
1.06k stars 144 forks source link

fix(rabbitmq-rpc): Fix channel initialization for message publishing. #809

Closed docknight closed 2 months ago

docknight commented 2 months ago

Recent feature (RPC calls for rabbitmq executor) broke the publishing type of execution. When running the testsuite, execution faulted with the following error: "rabbitmqpanic: runtime error: invalid memory address or nil pointer dereference",

This has been fixed and tested. A testsuite with a client type set to 'publisher' does not throw a nil pointer error and is properly publishing message(s) to the exchange.

ovh-cds commented 2 months ago

CDS Report build-venom-a#208.0 ✘

yesnault commented 2 months ago

@docknight

../../executors/rabbitmq/rabbitmq.go:161:19: cannot use e.openChannel(ctx) (value of type amqp.Connection) as amqp.Channel value in assignment 29s996ms ../../executors/rabbitmq/rabbitmq.go:161:19: cannot use e.openChannel(ctx) (value of type amqp.Channel) as amqp.Connection value in assignment