From e5265943ed078e54b1beeb710b6d2f945031d64b Mon Sep 17 00:00:00 2001 From: Xavier Thompson <xavier.thompson@nexedi.com> Date: Wed, 31 Jul 2024 16:20:56 +0300 Subject: [PATCH] software/theia: Improve resiliency tests --- software/theia/test/test_resiliency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/theia/test/test_resiliency.py b/software/theia/test/test_resiliency.py index 2efbc88bf..6a75d79c5 100644 --- a/software/theia/test/test_resiliency.py +++ b/software/theia/test/test_resiliency.py @@ -499,8 +499,8 @@ class TakeoverMixin(ExportAndImportMixin): resp = requests.get("%s?password=%s" % (takeover_url, takeover_password), verify=True) self.assertEqual(requests.codes.ok, resp.status_code) # Allow KeyError because of stricter "slapos request" command - self.assertNotIn("Error", resp.text.replace("KeyError: \\'frozen\\'", ""), "An Error occured: %s" % resp.text) - self.assertIn("Success", resp.text, "An Error occured: %s" % resp.text) + self.assertNotIn("Error", resp.text.replace("KeyError: \\'frozen\\'", "")) + self.assertIn("Success", resp.text) return resp.text def _doTakeover(self): -- 2.30.9