Open
Description
Hi there!
Great work bringing Testcontainers to Ruby!
I'm unable to start a RabbitMQ container using the RabbitMQ container module in an RSpec test suite. When invoking container.start
, Testcontainers times out waiting for the container to become healthy. The specific error message is:
Testcontainers::TimeoutError:
Timed out waiting for health check to be healthy
However, if I use Testcontainers::DockerContainer("rabbitmq:latest)
, this error doesn't occur.
For context, here's the code where container.start
is called:
require 'rails_helper'
require 'testcontainers/rabbitmq'
require 'bunny'
RSpec.describe "Books", type: :request do
rabbit = Testcontainers::RabbitmqContainer.new
before(:all) do
puts "Starting container"
rabbit.start
puts "Started container"
end
For reference, the puts "Started container"
line is never reached.
Metadata
Assignees
Labels
No labels
Activity