test: fix test_pageserver_recovery flakyness (#7207)

## Problem
We recently introduced log file validation for the storage controller.
The heartbeater will WARN when it fails
for a node, hence the test fails.

Closes https://github.com/neondatabase/neon/issues/7159

## Summary of changes
* Warn only once for each set of heartbeat retries
* Allow list heartbeat warns
This commit is contained in:
Vlad Lazar
2024-03-25 09:38:12 +00:00
committed by GitHub
parent 3220f830b7
commit 3a4ebfb95d
2 changed files with 8 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ impl HeartbeaterTask {
.with_client_retries(
|client| async move { client.get_utilization().await },
&jwt_token,
2,
3,
3,
Duration::from_secs(1),
&cancel,