summaryrefslogtreecommitdiffstats
path: root/docker/federation-test/tests.sh
blob: 2e88ffb25c8316daffd254b95024213f035c86c8 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
set -xe

pushd ../../ui
echo "Waiting for Lemmy to start..."
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8540/api/v1/site')" != "200" ]]; do sleep 1; done
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8550/api/v1/site')" != "200" ]]; do sleep 1; done
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8560/api/v1/site')" != "200" ]]; do sleep 1; done
yarn api-test || true
popd