qa: Add missing syncwithvalidationinterfacequeue to tests #12217
pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1801-qaWalletMempoolAsyncTake2 changing 2 files +6 −4-
MarcoFalke commented at 3:06 pm on January 18, 2018: memberFixes intermittent travis failures with those tests caused by a missing flush of mempool txes to the wallet.
-
MarcoFalke added the label Tests on Jan 18, 2018
-
MarcoFalke force-pushed on Jan 18, 2018
-
in test/functional/mempool_persist.py:73 in fa838c4063 outdated
72 self.start_node(2) 73 # Give bitcoind a second to reload the mempool 74- time.sleep(1) 75- wait_until(lambda: len(self.nodes[0].getrawmempool()) == 5) 76- wait_until(lambda: len(self.nodes[2].getrawmempool()) == 5) 77+ wait_until(lambda: len(self.nodes[0].getrawmempool()) == 5, timeout=1)
promag commented at 5:29 pm on January 18, 2018:Use sync_mempool with nodes 0 and 2?
MarcoFalke commented at 9:13 pm on January 18, 2018:We don’t want tosync_mempools
, but check that there are exactly 5 txs in the mempool. (Hopefully the ones that were there on shutdown)promag commented at 5:29 pm on January 18, 2018: memberutACK fa838c4.qa: Add missing syncwithvalidationinterfacequeue to tests fa796bb695in test/functional/zapwallettxes.py:65 in fa838c4063 outdated
58@@ -59,6 +59,7 @@ def run_test(self): 59 self.start_node(0, ["-persistmempool=1", "-zapwallettxes=2"]) 60 61 wait_until(lambda: self.nodes[0].getmempoolinfo()['size'] == 1, timeout=3) 62+ self.nodes[0].syncwithvalidationinterfacequeue() # Flush mempool to wallet 63 64 assert_equal(self.nodes[0].gettransaction(txid1)['txid'], txid1) 65 assert_equal(self.nodes[0].gettransaction(txid2)['txid'], txid2)
MarcoFalke commented at 2:24 pm on January 19, 2018:For the reviewer, the issue that it fixes here is:
JSONRPCException: Invalid or non-wallet transaction id (-5)
I remember that we saw those on travis, but I fail to locate a log with that error.
MarcoFalke force-pushed on Jan 25, 2018MarcoFalke force-pushed on Jan 25, 2018MarcoFalke commented at 3:32 pm on January 25, 2018: memberRebasedlaanwj commented at 9:56 am on January 29, 2018: memberutACK fa796bb695797810b90c7b6016fd4e9a1890f016laanwj merged this on Jan 29, 2018laanwj closed this on Jan 29, 2018
laanwj referenced this in commit 1213be6c3a on Jan 29, 2018MarcoFalke deleted the branch on Jan 29, 2018MarcoFalke referenced this in commit e2d36639ca on Mar 12, 2020sidhujag referenced this in commit b5531960ba on Mar 13, 2020PastaPastaPasta referenced this in commit d7732b0bc8 on Jun 13, 2020PastaPastaPasta referenced this in commit 52fc5a6be8 on Jun 13, 2020PastaPastaPasta referenced this in commit fac5e4a18e on Jun 17, 2020PastaPastaPasta referenced this in commit ab07a468b0 on Jun 18, 2020sidhujag referenced this in commit e8599a1feb on Nov 10, 2020PastaPastaPasta referenced this in commit 39136e6c43 on Jun 27, 2021PastaPastaPasta referenced this in commit d6fadb28bb on Jun 28, 2021PastaPastaPasta referenced this in commit 35bb03740e on Jun 29, 2021PastaPastaPasta referenced this in commit 785e7b99ff on Jul 1, 2021PastaPastaPasta referenced this in commit b8676ddc7d on Jul 1, 2021DrahtBot locked this on Sep 8, 2021Labels
Tests
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-06-01 22:13 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-06-01 22:13 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me