mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
pytest: Add debugging to test_gossip_store_compact_on_load
This flake has been difficult to reproduce, so let's dump the gossip store to aid in debugging. See issue #5410. Changelog-None
This commit is contained in:
committed by
Rusty Russell
parent
3ce26735e5
commit
0abe2e3af1
@@ -1716,6 +1716,11 @@ def test_gossip_store_load_no_channel_update(node_factory):
|
||||
def test_gossip_store_compact_on_load(node_factory, bitcoind):
|
||||
l2 = setup_gossip_store_test(node_factory, bitcoind)
|
||||
|
||||
gs_path = os.path.join(l2.daemon.lightning_dir, TEST_NETWORK, 'gossip_store')
|
||||
gs = subprocess.run(['devtools/dump-gossipstore', '--print-deleted', gs_path],
|
||||
check=True, timeout=TIMEOUT, stdout=subprocess.PIPE)
|
||||
print(gs.stdout.decode())
|
||||
|
||||
l2.restart()
|
||||
|
||||
wait_for(lambda: l2.daemon.is_in_log(r'gossip_store_compact_offline: [5-8] deleted, 9 copied'))
|
||||
|
||||
Reference in New Issue
Block a user