Skip to content

Commit e0bb598

Browse files
committed
fix: add sleep to fix flaky healthcheck cli test
1 parent 85563f0 commit e0bb598

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/cli/test_status_api.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ make run
5252
curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:7085/status | grep 200 \
5353
|| (echo "failed: status api didn't return 200"; exit 1)
5454

55+
sleep 2
56+
5557
curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:7085/status/ready | grep 200 \
5658
|| (echo "failed: status/ready api didn't return 200"; exit 1)
5759

0 commit comments

Comments
 (0)