Skip to content

Commit

Permalink
Merge pull request #84 from os-autoinst/setup_env_posthres_podman_retry
Browse files Browse the repository at this point in the history
Retry setting up the postgres container
  • Loading branch information
okurz authored May 11, 2022
2 parents 2a028a4 + 3a2760d commit e881ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/containers/setup_env.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sub run {

assert_script_run("mkdir -p /root/data/factory/{iso,hdd,other} /root/data/tests");
assert_script_run("docker network create testing");
assert_script_run("docker run --rm -d --network testing -e POSTGRES_PASSWORD=openqa -e POSTGRES_USER=openqa -e POSTGRES_DB=openqa --net-alias=db --name db postgres", timeout => 600);
assert_script_run("for i in {1..3}; do docker run --rm -d --network testing -e POSTGRES_PASSWORD=openqa -e POSTGRES_USER=openqa -e POSTGRES_DB=openqa --net-alias=db --name db postgres && break; done", timeout => 600);
wait_for_container_log("db", "database system is ready to accept connections", "docker");
}

Expand Down

0 comments on commit e881ac1

Please sign in to comment.