Skip to content

Commit

Permalink
Increase timeout for Mongo setup in tests.
Browse files Browse the repository at this point in the history
This seems to have become flaky recently (but only on GitHub Actions),
so try waiting a bit longer for MongoDB startup.

Might improve #433. If not then we can dig deeper.
  • Loading branch information
sengi committed Mar 5, 2024
1 parent a05ee8d commit 6e8df5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ healthy() {

# usage: retry_or_fatal description command-to-try
retry_or_fatal() {
n=10
n=20
echo -n "Waiting up to $n s for $1"; shift
while [ "$n" -ge 0 ]; do
if "$@"; then
Expand Down

0 comments on commit 6e8df5a

Please sign in to comment.