Skip to content

Commit

Permalink
Configure number of expected topics
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Jan 22, 2024
1 parent accdf72 commit 7d5f8a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion e2e/check-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ DIR=$(cd "$(dirname "$0")"; pwd -P)

. $DIR/../conf.sh

# TODO improve management of expected topics
# for example in the argo workflow job witch launch the alert simulator
if $NOSCIENCE ; then
EXPECTED_TOPICS="1"
else
EXPECTED_TOPICS="11"
fi

count=0
while ! finkctl wait topics --expected 11 --timeout 60s -v1
while ! finkctl wait topics --expected "$EXPECTED_TOPICS" --timeout 60s -v1
do
echo "Waiting for topics to be created"
sleep 5
Expand Down

0 comments on commit 7d5f8a9

Please sign in to comment.