From a05a6f582bdc196e12fd7fbabe64d263c89a38cf Mon Sep 17 00:00:00 2001
From: karnem <mikhail.karnevskiy@desy.de>
Date: Fri, 4 Aug 2023 22:25:26 +0200
Subject: [PATCH] Enable test of receiver with kafka. Add sleep of 3 sec after
 start of kafka listener to ensure that is it ready

---
 .gitlab-ci.yml                                                  | 2 +-
 .../transfer_single_file_with_kafka/check_linux.sh              | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b85739962..6c0212097 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -119,7 +119,7 @@ test-services-linux-debug:
     - cd $CI_PROJECT_DIR
     - bash $CI_PROJECT_DIR/deploy/build_env/services-linux/run_asapo.sh
     - cd $CI_PROJECT_DIR/build
-    - ctest --no-compress-output -T Test -L all -E "kafka|full_chain_monitoring|noaccess|restart|logger_fluentd" --output-on-failure --output-junit testResult.xml
+    - ctest --no-compress-output -T Test -L all -E "full_chain_monitoring|noaccess|restart|logger_fluentd" --output-on-failure --output-junit testResult.xml
   tags:
     - kubernetes-executor
   rules:
diff --git a/tests/automatic/producer_receiver/transfer_single_file_with_kafka/check_linux.sh b/tests/automatic/producer_receiver/transfer_single_file_with_kafka/check_linux.sh
index 4898118dc..b7aea7d62 100644
--- a/tests/automatic/producer_receiver/transfer_single_file_with_kafka/check_linux.sh
+++ b/tests/automatic/producer_receiver/transfer_single_file_with_kafka/check_linux.sh
@@ -61,6 +61,8 @@ done
 mkdir -p ${receiver_folder}
 mkdir -p ${receiver_folder_online}
 
+sleep 3
+
 $1 localhost:8400 ${beamtime_id} 100 1 1  100 30
 
 ls -ln ${receiver_folder_online}/raw/1
-- 
GitLab