From 3dae457bcee0b7c8b37472f9774348021336871b Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 27 Jul 2022 12:32:35 +0200 Subject: [PATCH] remove obsolete test --- test/io/test_io.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/io/test_io.py b/test/io/test_io.py index 081bad107f..da40c0ffe8 100644 --- a/test/io/test_io.py +++ b/test/io/test_io.py @@ -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()