diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/suite/test_rollback_to_stable19.py')
-rw-r--r-- | src/third_party/wiredtiger/test/suite/test_rollback_to_stable19.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/third_party/wiredtiger/test/suite/test_rollback_to_stable19.py b/src/third_party/wiredtiger/test/suite/test_rollback_to_stable19.py index cbf7c839433..b88c4720426 100644 --- a/src/third_party/wiredtiger/test/suite/test_rollback_to_stable19.py +++ b/src/third_party/wiredtiger/test/suite/test_rollback_to_stable19.py @@ -134,7 +134,6 @@ class test_rollback_to_stable19(test_rollback_to_stable_base): # Close and reopen the connection self.reopen_conn() else: - self.conn.rollback_to_stable() s.rollback_transaction() # Verify data is not visible. @@ -148,7 +147,7 @@ class test_rollback_to_stable19(test_rollback_to_stable_base): # After restart (not crash) the stats for the aborted updates will be 0, as the updates # will be aborted during shutdown, and on startup there will be no updates to be aborted. # This is similar case with keys removed. - if not self.in_memory and not self.crash: + if self.in_memory or not self.crash: self.assertEqual(upd_aborted, 0) self.assertEqual(keys_removed, 0) else: @@ -235,7 +234,6 @@ class test_rollback_to_stable19(test_rollback_to_stable_base): # Close and reopen the connection self.reopen_conn() else: - self.conn.rollback_to_stable() s.rollback_transaction() # Verify data. @@ -250,11 +248,12 @@ class test_rollback_to_stable19(test_rollback_to_stable_base): # After restart (not crash) the stats for the aborted updates and history store removed will be 0, # as the updates aborted and history store removed will occur during shutdown, and on startup there # will be no updates to be removed. - if not self.in_memory: - if self.crash: - self.assertGreater(hs_removed, 0) - else: - self.assertEqual(hs_removed, 0) - self.assertEqual(upd_aborted, 0) + if self.in_memory or not self.crash: + self.assertEqual(hs_removed, 0) + self.assertEqual(upd_aborted, 0) else: + self.assertGreater(hs_removed, 0) self.assertGreater(upd_aborted, 0) + +if __name__ == '__main__': + wttest.run() |