Skip to content

Commit

Permalink
Make test_pageserver_http_get_wal_receiver_success not wait for keepa…
Browse files Browse the repository at this point in the history
…live.
  • Loading branch information
arssher committed Sep 18, 2023
1 parent bb2c325 commit 2b91f50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_runner/regress/test_pageserver_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ def test_pageserver_http_get_wal_receiver_success(neon_simple_env: NeonEnv):
tenant_id, timeline_id = env.neon_cli.create_tenant()
endpoint = env.endpoints.create_start(DEFAULT_BRANCH_NAME, tenant_id=tenant_id)

# insert something to force sk -> ps message
endpoint.safe_psql("CREATE TABLE t(key int primary key, value text)")
# Wait to make sure that we get a latest WAL receiver data.
# We need to wait here because it's possible that we don't have access to
# the latest WAL yet, when the `timeline_detail` API is first called.
Expand All @@ -168,7 +170,7 @@ def test_pageserver_http_get_wal_receiver_success(neon_simple_env: NeonEnv):
)

# Make a DB modification then expect getting a new WAL receiver's data.
endpoint.safe_psql("CREATE TABLE t(key int primary key, value text)")
endpoint.safe_psql("INSERT INTO t VALUES (1, 'hey')")
wait_until(
number_of_iterations=5,
interval=1,
Expand Down

0 comments on commit 2b91f50

Please sign in to comment.