diff options
| author | Adam Jonas <[email protected]> | 2019-03-01 10:19:56 -0500 |
|---|---|---|
| committer | Adam Jonas <[email protected]> | 2019-03-01 10:20:57 -0500 |
| commit | f13ad1cae04fc1c364b7704a7434a69f0147a2ad (patch) | |
| tree | b2ac34ab1f8d194df9731d33d7fd9a80f7546728 /test | |
| parent | add rpc_misc.py, mv test getmemoryinfo, add test mallocinfo (diff) | |
| download | discoin-f13ad1cae04fc1c364b7704a7434a69f0147a2ad.tar.xz discoin-f13ad1cae04fc1c364b7704a7434a69f0147a2ad.zip | |
modify test for memory locked in case locking pages failed at some point
Diffstat (limited to 'test')
| -rwxr-xr-x | test/functional/rpc_misc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/rpc_misc.py b/test/functional/rpc_misc.py index ab216bc46..7bf8e6817 100755 --- a/test/functional/rpc_misc.py +++ b/test/functional/rpc_misc.py @@ -10,6 +10,7 @@ from test_framework.util import ( assert_raises_rpc_error, assert_equal, assert_greater_than, + assert_greater_than_or_equal, ) from test_framework.authproxy import JSONRPCException @@ -27,7 +28,8 @@ class RpcMiscTest(BitcoinTestFramework): assert_greater_than(memory['used'], 0) assert_greater_than(memory['free'], 0) assert_greater_than(memory['total'], 0) - assert_greater_than(memory['locked'], 0) + # assert_greater_than_or_equal() for locked in case locking pages failed at some point + assert_greater_than_or_equal(memory['locked'], 0) assert_greater_than(memory['chunks_used'], 0) assert_greater_than(memory['chunks_free'], 0) assert_equal(memory['used'] + memory['free'], memory['total']) |