Skip to content

Commit

Permalink
fix: tests for Kafka container running on ARM64 CPU (#536)
Browse files Browse the repository at this point in the history
v5.4.3 was not supporting ARM CPUs. Removed an obsolet test.

Fixes #450

![Screenshot 2024-04-09 at 19 59
56](https://github.com/testcontainers/testcontainers-python/assets/13573675/ae11c272-83da-4364-ad7a-a86a128bfd24)
  • Loading branch information
max-pfeiffer authored Apr 14, 2024
1 parent 5ccec17 commit 29b5179
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion modules/kafka/testcontainers/kafka/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class KafkaContainer(DockerContainer):

TC_START_SCRIPT = "/tc-start.sh"

def __init__(self, image: str = "confluentinc/cp-kafka:5.4.3", port: int = 9093, **kwargs) -> None:
def __init__(self, image: str = "confluentinc/cp-kafka:7.6.0", port: int = 9093, **kwargs) -> None:
raise_for_deprecated_parameter(kwargs, "port_to_expose", "port")
super().__init__(image, **kwargs)
self.port = port
Expand Down
5 changes: 0 additions & 5 deletions modules/kafka/tests/test_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ def test_kafka_producer_consumer_custom_port():
produce_and_consume_kafka_message(container)


def test_kafka_confluent_7_1_3():
with KafkaContainer(image="confluentinc/cp-kafka:7.1.3") as container:
produce_and_consume_kafka_message(container)


def produce_and_consume_kafka_message(container):
topic = "test-topic"
bootstrap_server = container.get_bootstrap_server()
Expand Down

0 comments on commit 29b5179

Please sign in to comment.