Skip to content

Commit

Permalink
remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
robx committed Jul 29, 2022
1 parent a4c9fd1 commit 3dae457
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/io/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,26 +560,6 @@ def test_iat_claim(defaultenv):
time.sleep(0.1)


def test_app_settings(defaultenv):
"""
App settings should not reset when the db pool times out.
See: https://github.com/PostgREST/postgrest/issues/1141
"""

env = {**defaultenv, "PGRST_APP_SETTINGS_EXTERNAL_API_SECRET": "0123456789abcdef"}

with run(env=env) as postgrest:
# Wait for the db pool to time out, set to 1s in config
time.sleep(2)

uri = "/rpc/get_guc_value?name=app.settings.external_api_secret"
response = postgrest.session.get(uri)

assert response.text == '"0123456789abcdef"'


def test_app_settings_reload(tmp_path, defaultenv):
"App settings should be reloaded from file when PostgREST is sent SIGUSR2."
config = (CONFIGSDIR / "sigusr2-settings.config").read_text()
Expand Down

0 comments on commit 3dae457

Please sign in to comment.