From 466e4df3fb83ef82b6add22e202e3a70dbf83a12 Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Wed, 20 Nov 2024 12:57:29 -0500 Subject: [PATCH] assert_mempool_contents: assert not duplicates expected --- test/functional/test_framework/mempool_util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/test_framework/mempool_util.py b/test/functional/test_framework/mempool_util.py index e04ae914ccfd9..0e9c821e2ead9 100644 --- a/test/functional/test_framework/mempool_util.py +++ b/test/functional/test_framework/mempool_util.py @@ -30,6 +30,7 @@ def assert_mempool_contents(test_framework, node, expected=None, sync=True): test_framework.sync_mempools() if not expected: expected = [] + assert_equal(len(expected), len(set(expected))) mempool = node.getrawmempool(verbose=False) assert_equal(len(mempool), len(expected)) for tx in expected: