Allow failure to report metrics in test_metric_collection.

Per CI
https://github.com/neondatabase/neon/actions/runs/3822039946/attempts/1
shutdown seems to be racy.
This commit is contained in:
Arseny Sher
2023-01-02 16:03:26 +04:00
committed by Arseny Sher
parent 56a4466d0a
commit 6fd64cd5f6

View File

@@ -107,6 +107,9 @@ def test_metric_collection(
# spin up neon, after http server is ready
env = neon_env_builder.init_start()
# Order of fixtures shutdown is not specified, and if http server gets down
# before pageserver, pageserver log might contain such errors in the end.
env.pageserver.allowed_errors.append(".*metrics endpoint refused the sent metrics*")
env.neon_cli.create_branch("test_metric_collection")
pg = env.postgres.create_start("test_metric_collection")