test: changes to make Kafka container run in GitHub action

This commit is contained in:
Kjell Winblad 2022-09-23 14:33:41 +02:00
parent 8e514680d8
commit a3c88b40a0
2 changed files with 5 additions and 1 deletions

View File

@ -33,10 +33,14 @@ services:
ports: ports:
- "9092:9092" - "9092:9092"
- "9093:9093" - "9093:9093"
- "9094:9094"
- "9095:9095"
container_name: kafka-1.emqx.net container_name: kafka-1.emqx.net
hostname: kafka-1.emqx.net hostname: kafka-1.emqx.net
depends_on: depends_on:
- "kdc" - "kdc"
- "zookeeper"
- "ssl_cert_gen"
environment: environment:
KAFKA_BROKER_ID: 1 KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181

View File

@ -51,7 +51,7 @@ all() ->
wait_until_kafka_is_up() -> wait_until_kafka_is_up() ->
wait_until_kafka_is_up(0). wait_until_kafka_is_up(0).
wait_until_kafka_is_up(90) -> wait_until_kafka_is_up(300) ->
ct:fail("Kafka is not up even though we have waited for a while"); ct:fail("Kafka is not up even though we have waited for a while");
wait_until_kafka_is_up(Attempts) -> wait_until_kafka_is_up(Attempts) ->
KafkaTopic = "test-topic-one-partition", KafkaTopic = "test-topic-one-partition",