qa: clean up assert_memory_usage_stable utility

This commit is contained in:
James O'Beirne
2018-11-26 15:47:30 -05:00
parent 0cf1632f03
commit 5a1f57646b
2 changed files with 11 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ class InvalidMessagesTest(BitcoinTestFramework):
msg_at_size = msg_unrecognized("b" * valid_data_limit)
assert len(msg_at_size.serialize()) == msg_limit
with node.assert_memory_usage_stable(perc_increase_allowed=0.5):
with node.assert_memory_usage_stable(increase_allowed=0.5):
self.log.info(
"Sending a bunch of large, junk messages to test "
"memory exhaustion. May take a bit...")