mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 01:12:56 +00:00
set timeout to 30s only debug builds
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -52,9 +52,7 @@ def test_sharding_smoke(
|
||||
neon_env_builder.enable_pageserver_remote_storage(s3_storage())
|
||||
|
||||
env = neon_env_builder.init_start(
|
||||
initial_tenant_shard_count=shard_count,
|
||||
initial_tenant_shard_stripe_size=stripe_size,
|
||||
timeout_in_seconds=30, # Just 10s is not always enough
|
||||
initial_tenant_shard_count=shard_count, initial_tenant_shard_stripe_size=stripe_size
|
||||
)
|
||||
tenant_id = env.initial_tenant
|
||||
|
||||
|
||||
Reference in New Issue
Block a user