set timeout to 30s only debug builds

This commit is contained in:
Fedor Dikarev
2024-12-05 17:45:21 +04:00
parent 0e0d8276da
commit 46668775eb
2 changed files with 3 additions and 3 deletions

View File

@@ -479,6 +479,8 @@ class NeonEnvBuilder:
Configuring pageserver with remote storage is now the default. There will be a warning if pageserver is created without one.
"""
env = self.init_configs(default_remote_storage_if_missing=default_remote_storage_if_missing)
if (timeout_in_seconds is None) and (os.getenv("BUILD_TYPE") == "debug"):
timeout_in_seconds = 30
env.start(timeout_in_seconds=timeout_in_seconds)
# Prepare the default branch to start the postgres on later.