Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit f93cfbe

Browse files
wagmarceljelyoussefi
authored andcommitted
tests/Makefile: Send kafacat producer output to >/dev/null. It creates a huge amount of output when Kakfa service is not ready
Signed-off-by: Marcel Wagner <[email protected]>
1 parent 0675770 commit f93cfbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ test: npm-install
5252
@$(call msg,"Waiting for frontend and test Kafka readiness");
5353
# fill in separator to avoid accidentially dashboard being most recent heartbeat.
5454
# Then look always for latest heartbeat
55-
@until echo new-test | kafkacat -P -b $(KAFKA_BROKER) -t heartbeat; do echo "Kafka not ready. Waiting ..."; sleep 1; done
56-
@ (for i in {1..4}; do echo new-test ; done) | kafkacat -P -b $(KAFKA_BROKER) -t heartbeat;
55+
@until echo new-test | kafkacat -P -b $(KAFKA_BROKER) -t heartbeat >/dev/null; do echo "Kafka not ready. Waiting ..."; sleep 1; done
56+
@ (for i in {1..4}; do echo new-test ; done) | kafkacat -P -b $(KAFKA_BROKER) -t heartbeat >/dev/null;
5757
@. ../setup-environment.sh && until kafkacat -C -b $(KAFKA_BROKER) -t heartbeat -e -o -4 2> /dev/null | grep -m 1 "dashboard"; do sleep 1 ; done
5858
ifeq ($(TESTING_PLATFORM), docker)
5959
@$(call msg,"Resetting database ...");

0 commit comments

Comments
 (0)