diff --git a/examples/influxdb/.test.sh b/examples/influxdb/.test.sh index 9b79b708f..ce2c18335 100755 --- a/examples/influxdb/.test.sh +++ b/examples/influxdb/.test.sh @@ -12,10 +12,10 @@ function stop() { trap stop EXIT # We test for the none-default port, configured in the nix file -timeout 10 bash -c 'until echo > /dev/tcp/localhost/8087; do sleep 0.5; done' +timeout 60 bash -c 'until echo > /dev/tcp/localhost/8087; do sleep 0.5; done' -influx --execute "CREATE DATABASE devenv" -DATABASES=$(influx --execute "SHOW DATABASES" | grep devenv) +influx --port 8087 --execute "CREATE DATABASE devenv" +DATABASES=$(influx --port 8087 --execute "SHOW DATABASES" | grep devenv) if [[ "$DATABASES" != "devenv" ]]; then echo "The influxdb database was not created"