Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Jan 8, 2025
1 parent d2bd93a commit 9f0e336
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/new_tests/test_truncate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 9f0e336

Please sign in to comment.