Skip to content

Commit

Permalink
Increase wait time for instance start
Browse files Browse the repository at this point in the history
  • Loading branch information
soebbing committed Dec 18, 2023
1 parent a3770ae commit d4b9af6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/influxdb/.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d4b9af6

Please sign in to comment.