test: changes to make Kafka container run in GitHub action
This commit is contained in:
parent
8e514680d8
commit
a3c88b40a0
|
@ -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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue