diff --git a/lib/container/cassandra_container.ex b/lib/container/cassandra_container.ex index 79ec7d4..28c2643 100644 --- a/lib/container/cassandra_container.ex +++ b/lib/container/cassandra_container.ex @@ -5,7 +5,7 @@ defmodule Testcontainers.CassandraContainer do """ alias Testcontainers.CassandraContainer - alias Testcontainers.LogWaitStrategy + alias Testcontainers.CommandWaitStrategy alias Testcontainers.ContainerBuilder alias Testcontainers.Container @@ -89,8 +89,8 @@ defmodule Testcontainers.CassandraContainer do |> with_environment(:CASSANDRA_ENDPOINT_SNITCH, "GossipingPropertyFileSnitch") |> with_environment(:CASSANDRA_DC, "datacenter1") |> with_waiting_strategy( - LogWaitStrategy.new( - ~r/Starting listening for CQL clients on \/0\.0\.0\.0:#{CassandraContainer.default_port()}.*/, + CommandWaitStrategy.new( + ["cqlsh", "-e", "describe keyspaces"], config.wait_timeout ) )