From 9a3d453bf4ac01f405eb6e536944b488eec88019 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Fri, 2 Jun 2023 17:03:31 -0500 Subject: [PATCH] test: remove big_schema.sql from io tests It was unused(test skipped) and made the scache reload slower, causing test failure on CI. --- test/io/fixtures.sql | 2 +- test/io/test_io.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/io/fixtures.sql b/test/io/fixtures.sql index 6187d902f..88d4f3ff2 100644 --- a/test/io/fixtures.sql +++ b/test/io/fixtures.sql @@ -1,4 +1,4 @@ -\ir big_schema.sql +-- \ir big_schema.sql big schema test currently skipped, see test_io.py \ir db_config.sql set search_path to public; diff --git a/test/io/test_io.py b/test/io/test_io.py index 17c363758..59d1a3d2e 100644 --- a/test/io/test_io.py +++ b/test/io/test_io.py @@ -308,13 +308,11 @@ def test_db_schema_reload(tmp_path, defaultenv): # reload config postgrest.process.send_signal(signal.SIGUSR2) + time.sleep(0.1) # reload schema cache to verify that the config reload actually happened postgrest.process.send_signal(signal.SIGUSR1) - - # takes max 1 second to load the internal cache(big_schema.sql included now) - # TODO this could go back to time.sleep(0.1) if the big_schema is put in another test suite - time.sleep(1) + time.sleep(0.1) response = postgrest.session.get("/rpc/get_guc_value?name=search_path") assert response.text == '"\\"v1\\", \\"public\\""'