Skip to content

RabbitMQ Module #20

Open
Open
@mlk-kc

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions