From 9f0e336edeff89023b8770e761274e3c0094cdbe Mon Sep 17 00:00:00 2001 From: Julian Nguyen <109386615+juliannguyen4@users.noreply.github.com> Date: Wed, 8 Jan 2025 15:38:11 -0800 Subject: [PATCH] Add regression test --- test/new_tests/test_truncate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/new_tests/test_truncate.py b/test/new_tests/test_truncate.py index 335b6e648..1e46b355b 100644 --- a/test/new_tests/test_truncate.py +++ b/test/new_tests/test_truncate.py @@ -203,3 +203,8 @@ def test_whole_set_truncation_with_invalid_policy(self): def test_whole_set_truncation_with_invalid_policy_type(self, policy): with pytest.raises(e.ClientError): self.as_connection.truncate("test", "truncate", 0, policy) + + def test_truncate_after_close(self): + self.as_connection.close() + with pytest.raises(e.ClusterError): + self.as_connection.truncate("test", None, 0)