Skip to content
Permalink
Browse files

CircleCI: Fix blocking test because netstat does not exist

  • Loading branch information
SwimmingTiger committed Oct 8, 2019
1 parent d71763c commit 49a04532f8a830c0b9f38cc96c47f7c20daa13b5
Showing with 2 additions and 2 deletions.
  1. +1 −1 docker/btcpool/test/beam/helper/functions.sh
  2. +1 −1 docker/btcpool/test/btc/helper/functions.sh
@@ -27,7 +27,7 @@ WAIT_FOR_PORT() {
container_name="$1"
port="$2"
WAIT_FOR_CONTAINER "$container_name"
while [ "$(docker exec "$container_name" netstat -lntp | grep ":$port" | wc -l)" = "0" ]; do
while [ "$(docker exec "$container_name" grep "$(printf ':%04X 00000000:0000 0A' $port)" /proc/net/tcp | wc -l)" = "0" ]; do
echo "waiting for port $port..."
sleep 1
done
@@ -27,7 +27,7 @@ WAIT_FOR_PORT() {
container_name="$1"
port="$2"
WAIT_FOR_CONTAINER "$container_name"
while [ "$(docker exec "$container_name" netstat -lntp | grep ":$port" | wc -l)" = "0" ]; do
while [ "$(docker exec "$container_name" grep "$(printf ':%04X 00000000:0000 0A' $port)" /proc/net/tcp | wc -l)" = "0" ]; do
echo "waiting for port $port..."
sleep 1
done

0 comments on commit 49a0453

Please sign in to comment.
You can’t perform that action at this time.