From 7d77246498226e9c4d25da13cae15248b607b2bf Mon Sep 17 00:00:00 2001 From: Oleksandr Havryliak Date: Tue, 3 Sep 2024 09:33:28 +0300 Subject: [PATCH] PBM-1264 add timeout before the restore --- pbm-functional/pytest/cluster.py | 2 -- pbm-functional/pytest/test_PBM-1223.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pbm-functional/pytest/cluster.py b/pbm-functional/pytest/cluster.py index 46c27a48..4e664a29 100644 --- a/pbm-functional/pytest/cluster.py +++ b/pbm-functional/pytest/cluster.py @@ -482,8 +482,6 @@ def make_restore(self, name, **kwargs): client = pymongo.MongoClient(self.connection) result = client.admin.command("balancerStart") Cluster.log("Starting balancer: " + str(result)) - result = client.admin.command("flushRouterConfig") - Cluster.log("Executed flushRouterConfig: " + str(result)) client.close() # destroys cluster diff --git a/pbm-functional/pytest/test_PBM-1223.py b/pbm-functional/pytest/test_PBM-1223.py index b9613027..160a7b63 100644 --- a/pbm-functional/pytest/test_PBM-1223.py +++ b/pbm-functional/pytest/test_PBM-1223.py @@ -164,6 +164,8 @@ def find_inserted(array_tuples,timestamp): Cluster.log("test1 inserted count: " + str(inserted_test1)) Cluster.log("test2 inserted count: " + str(inserted_test2)) + time.sleep(60) + if backup_type == "logical": restart = False else: