summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/suite/test_intpack.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/suite/test_intpack.py')
-rw-r--r--src/third_party/wiredtiger/test/suite/test_intpack.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/test/suite/test_intpack.py b/src/third_party/wiredtiger/test/suite/test_intpack.py
index 68c9f7b5566..4ba094265c7 100644
--- a/src/third_party/wiredtiger/test/suite/test_intpack.py
+++ b/src/third_party/wiredtiger/test/suite/test_intpack.py
@@ -126,6 +126,9 @@ class PackTester:
class test_intpack(wttest.WiredTigerTestCase):
name = 'test_intpack'
+ # It's useful to test a larger range but avoid the CPU overhead normally
+ base_range = 66000 if wttest.islongtest() else 5000
+
# We have to be a bit verbose here with naming, scenario names are
# case insensitive and must be unique.
@@ -152,7 +155,7 @@ class test_intpack(wttest.WiredTigerTestCase):
pt = PackTester(self.formatcode, self.low, self.high, self.assertEquals)
self.assertEquals(2 ** self.nbits, self.high - self.low + 1)
pt.initialize(self.session)
- pt.check_range(-66000, 66000)
+ pt.check_range(-self.base_range, self.base_range)
if self.nbits >= 32:
e32 = 2 ** 32
pt.check_range(e32 - 1000, e32 + 1000)