refactor(test): unify how we clear shared buffers (#8634)

so that we can easily plug in LFC clearing as well.

Private discussion reference:
<https://neondb.slack.com/archives/C033A2WE6BZ/p1722942856987979>
This commit is contained in:
Joonas Koivunen
2024-08-13 20:14:42 +03:00
committed by GitHub
parent 8f170c5105
commit ae6e27274c
8 changed files with 21 additions and 15 deletions

View File

@@ -2159,7 +2159,7 @@ def test_broker_discovery(neon_env_builder: NeonEnvBuilder):
# generate some data to commit WAL on safekeepers
endpoint.safe_psql("insert into t select generate_series(1,100), 'action'")
# clear the buffers
endpoint.safe_psql("select clear_buffer_cache()")
endpoint.clear_shared_buffers()
# read data to fetch pages from pageserver
endpoint.safe_psql("select sum(i) from t")