diff --git a/test/suite/test_backup13.py b/test/suite/test_backup13.py index 4e53ff02e..2a6eb802e 100644 --- a/test/suite/test_backup13.py +++ b/test/suite/test_backup13.py @@ -67,6 +67,7 @@ class test_backup13(backup_base): "WiredTiger.lock" not in fullname and \ "Tmplog" not in fullname and \ "Preplog" not in fullname: + yield shutil.copy(fullname, newdir) # close the original connection and open to new directory. self.close_conn() @@ -129,7 +130,8 @@ class test_backup13(backup_base): lambda: self.session.open_cursor('backup:', None, config)) # Make sure after a crash we cannot access old backup info. - self.simulate_crash_restart(".", "RESTART") + for _ in self.simulate_crash_restart(".", "RESTART"): + import time;time.sleep(0.05) self.assertRaises(wiredtiger.WiredTigerError, lambda: self.session.open_cursor('backup:', None, config))