using extend method instead of append

refactored the code to use a method to combine two line together

Co-authored-by: Alexander Bayandin <alexander@neon.tech>
This commit is contained in:
Abhijeet Patil
2024-01-17 10:57:38 +00:00
committed by Abhijeet Patil
parent c3439466e5
commit a46960a855

View File

@@ -748,10 +748,12 @@ def test_metrics_while_ignoring_broken_tenant_and_reloading(
env = neon_env_builder.init_start()
client = env.pageserver.http_client()
env.pageserver.allowed_errors.append(
r".* Changing Active tenant to Broken state, reason: broken from test"
env.pageserver.allowed_errors.extend(
[
r".* Changing Active tenant to Broken state, reason: broken from test",
r".*Dropped remote consistent LSN updates for tenant *.",
]
)
env.pageserver.allowed_errors.append(r".*Dropped remote consistent LSN updates for tenant *.")
def only_int(samples: List[Sample]) -> Optional[int]:
if len(samples) == 1: