Skip to content

Commit dd130a3

Browse files
committed
test: trivial fixes to resolve coderabbit's comments
1 parent d82c39c commit dd130a3

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

test/functional/feature_llmq_simplepose.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
class LLMQSimplePoSeTest(DashTestFramework):
2020
def set_test_params(self):
21-
self.extra_args = [[ f'-testactivationheight=dip0024@9999' ]] * 6
21+
# rotating quorums add instability for this functional tests
22+
self.extra_args = [[ '-testactivationheight=dip0024@9999' ]] * 6
2223
self.set_dash_test_params(6, 5)
2324
self.set_dash_llmq_test_params(5, 3)
24-
# rotating quorums add instability for this functional tests
2525

2626
def add_options(self, parser):
2727
parser.add_argument("--disable-spork23", dest="disable_spork23", default=False, action="store_true",
28-
help="Test with spork21 enabled")
28+
help="Test with spork23 enabled")
2929

3030
def run_test(self):
3131
if self.options.disable_spork23:

test/functional/test_framework/masternodes.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@
66

77
def check_punished(node, mn):
88
info = node.protx('info', mn.proTxHash)
9-
if info['state']['PoSePenalty'] > 0:
10-
return True
11-
return False
9+
return info['state']['PoSePenalty'] > 0:
1210

1311
def check_banned(node, mn):
1412
info = node.protx('info', mn.proTxHash)
15-
if info['state']['PoSeBanHeight'] != -1:
16-
return True
17-
return False
13+
return info['state']['PoSeBanHeight'] != -1:

0 commit comments

Comments
 (0)