fix CheckSytel

This commit is contained in:
guoxiaolong 2023-10-12 21:15:52 +08:00
parent 6e927325e4
commit 369ebf3c4f
2 changed files with 4 additions and 10 deletions

View File

@ -143,12 +143,12 @@ class KeeperClient(object):
def find_super_nodes(self, threshold: int, timeout: float = 60.0) -> str:
return self.execute_query(f"find_super_nodes {threshold}", timeout)
def delete_stale_backups(self, timeout: float = 60.0) -> str:
return self.execute_query("delete_stale_backups", timeout)
def get_all_children_number(self, path: str, timeout: float = 60.0) -> str:
return self.execute_query(f"get_all_children_number {path}", timeout)
def delete_stale_backups(self, timeout: float = 60.0) -> str:
return self.execute_query("delete_stale_backups", timeout)
def reconfig(
self,
joining: tp.Optional[str],

View File

@ -232,10 +232,4 @@ def test_get_all_children_number(client: KeeperClient):
client.touch("/test_get_all_children_number/2/3")
client.touch("/test_get_all_children_number/2/4")
response = client.get_all_children_number("/test_get_all_children_number")
assert response == TSV(
[
["11"]
]
)
assert client.get_all_children_number("/test_get_all_children_number") == ["11"]