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

Commit

Permalink
tests/Makefile: Send kafacat producer output to >/dev/null. It create…
Browse files Browse the repository at this point in the history
…s a huge amount of output when Kakfa service is not ready

Signed-off-by: Marcel Wagner <[email protected]>
  • Loading branch information
wagmarcel authored and jelyoussefi committed Apr 15, 2019
1 parent 0675770 commit f93cfbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ test: npm-install
@$(call msg,"Waiting for frontend and test Kafka readiness");
# fill in separator to avoid accidentially dashboard being most recent heartbeat.
# Then look always for latest heartbeat
@until echo new-test | kafkacat -P -b $(KAFKA_BROKER) -t heartbeat; do echo "Kafka not ready. Waiting ..."; sleep 1; done
@ (for i in {1..4}; do echo new-test ; done) | kafkacat -P -b $(KAFKA_BROKER) -t heartbeat;
@until echo new-test | kafkacat -P -b $(KAFKA_BROKER) -t heartbeat >/dev/null; do echo "Kafka not ready. Waiting ..."; sleep 1; done
@ (for i in {1..4}; do echo new-test ; done) | kafkacat -P -b $(KAFKA_BROKER) -t heartbeat >/dev/null;
@. ../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
ifeq ($(TESTING_PLATFORM), docker)
@$(call msg,"Resetting database ...");
Expand Down

0 comments on commit f93cfbe

Please sign in to comment.