Skip to content

Commit 3f90057

Browse files
Increase wait time in start-core-server to 10 s, add error message
1 parent 58936a1 commit 3f90057

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/test/start-core-server.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ JAVA_HOME=$BAZEL_JAVA_HOME ./typedb-all/typedb server --diagnostics.reporting.er
2626

2727
set +e
2828
POLL_INTERVAL_SECS=0.5
29-
RETRY_NUM=10
29+
RETRY_NUM=20
3030
while [[ $RETRY_NUM -gt 0 ]]; do
3131
lsof -i :1729 > /dev/null
3232
if [ $? -eq 0 ]; then exit 0; fi
3333
((RETRY_NUM-=1))
3434
sleep $POLL_INTERVAL_SECS
3535
done
36+
echo "TypeDB server failed to start within $((POLL_INTERVAL_SECS * RETRY_NUM)) seconds, aborting..."
3637
exit 1

0 commit comments

Comments
 (0)