Skip to content

Commit f13ad1c

Browse files
committed
modify test for memory locked in case locking pages failed at some point
1 parent 2fa85eb commit f13ad1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/rpc_misc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
assert_raises_rpc_error,
1111
assert_equal,
1212
assert_greater_than,
13+
assert_greater_than_or_equal,
1314
)
1415

1516
from test_framework.authproxy import JSONRPCException
@@ -27,7 +28,8 @@ def run_test(self):
2728
assert_greater_than(memory['used'], 0)
2829
assert_greater_than(memory['free'], 0)
2930
assert_greater_than(memory['total'], 0)
30-
assert_greater_than(memory['locked'], 0)
31+
# assert_greater_than_or_equal() for locked in case locking pages failed at some point
32+
assert_greater_than_or_equal(memory['locked'], 0)
3133
assert_greater_than(memory['chunks_used'], 0)
3234
assert_greater_than(memory['chunks_free'], 0)
3335
assert_equal(memory['used'] + memory['free'], memory['total'])

0 commit comments

Comments
 (0)