@@ -61,7 +61,7 @@ class _BaseEnumTest(unittest.TestCase):
6161
6262 # conf keys every test may read/write
6363 _CONF_KEYS = ("direct" , "technique" , "db" , "tbl" , "col" , "exclude" ,
64- "getComments" , "excludeSysDbs" , "search" , "freshQueries" )
64+ "getComments" , "excludeSysDbs" , "search" , "freshQueries" , "threads" )
6565
6666 def setUp (self ):
6767 self ._saved_conf = {k : conf .get (k ) for k in self ._CONF_KEYS }
@@ -117,6 +117,7 @@ def _enable_inference(self):
117117 """Take the blind inference branch: conf.direct off, a BOOLEAN technique present."""
118118 conf .direct = False
119119 conf .technique = None
120+ conf .threads = 1 # exercise the serial getValue() path these tests mock (>1 takes the value-parallel branch)
120121 kb .injection .data = {PAYLOAD .TECHNIQUE .BOOLEAN : {"title" : "AND boolean-based blind" }}
121122
122123
@@ -533,7 +534,7 @@ def gv(query, *a, **k):
533534
534535class _DbBase (unittest .TestCase ):
535536 _CONF_KEYS = ("direct" , "technique" , "db" , "tbl" , "col" , "exclude" ,
536- "getComments" , "excludeSysDbs" , "search" , "freshQueries" )
537+ "getComments" , "excludeSysDbs" , "search" , "freshQueries" , "threads" )
537538
538539 def setUp (self ):
539540 self ._saved_conf = {k : conf .get (k ) for k in self ._CONF_KEYS }
@@ -588,6 +589,7 @@ def _fresh(self):
588589 def _inference (self ):
589590 conf .direct = False
590591 conf .technique = None
592+ conf .threads = 1 # exercise the serial getValue() path these tests mock (>1 takes the value-parallel branch)
591593 kb .injection .data = {PAYLOAD .TECHNIQUE .BOOLEAN : {"title" : "AND boolean-based blind" }}
592594
593595
0 commit comments