From a1582a61361fde3b965021e3e3c79cf8e7af318b Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Tue, 9 Apr 2024 12:41:41 +0500 Subject: [PATCH] test: clean test_role_settings in io-tests --- test/io/test_io.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/io/test_io.py b/test/io/test_io.py index ddfc9b7fe..74d890def 100644 --- a/test/io/test_io.py +++ b/test/io/test_io.py @@ -1001,6 +1001,12 @@ def test_role_settings(defaultenv): ) assert response.text == '"10s"' + # reset statement timeout to original value + response = postgrest.session.post( + "/rpc/change_role_statement_timeout", data={"timeout": "2s"} + ) + assert response.status_code == 204 + def test_isolation_level(defaultenv): "isolation_level should be set per role and per function"