diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2014-12-09 12:38:48 -0500 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2014-12-09 12:38:48 -0500 |
commit | 7f45a21f23de25ede212a7f304c782b5fc9cc3c1 (patch) | |
tree | 94471c1e9e79efff74d9a5b9032085e9107b081b /test | |
parent | 6398e5924fec4c6201b593f9c9ac15c6bd6a1719 (diff) | |
download | mongo-7f45a21f23de25ede212a7f304c782b5fc9cc3c1.tar.gz |
Use new stat for small records. #1359
Diffstat (limited to 'test')
-rw-r--r-- | test/suite/test_txn07.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/suite/test_txn07.py b/test/suite/test_txn07.py index 657365ec6fc..08dd331a086 100644 --- a/test/suite/test_txn07.py +++ b/test/suite/test_txn07.py @@ -270,6 +270,7 @@ class test_txn07(wttest.WiredTigerTestCase, suite_subprocess): cmem = stat_cursor[stat.conn.log_compress_mem][2] cwrites = stat_cursor[stat.conn.log_compress_writes][2] cfails = stat_cursor[stat.conn.log_compress_write_fails][2] + csmall = stat_cursor[stat.conn.log_compress_small][2] stat_cursor.close() # Check the log state after the entire op completes @@ -283,11 +284,11 @@ class test_txn07(wttest.WiredTigerTestCase, suite_subprocess): elif self.compress == 'nop': self.assertEqual(clen, cmem) self.assertEqual(cwrites, 0) - self.assertEqual(cfails > 0, True) + self.assertEqual((cfails > 0 or csmall > 0), True) else: self.assertEqual(clen < cmem, True) self.assertEqual(cwrites > 0, True) - self.assertEqual(cfails > 0, True) + self.assertEqual((cfails > 0 or csmall > 0), True) if __name__ == '__main__': wttest.run() |