diff --git a/tests/test_gossip.py b/tests/test_gossip.py index 211ffe81b..cb206712f 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -1153,3 +1153,16 @@ def test_gossip_store_compact(node_factory, bitcoind): # Should restart ok. l2.restart() wait_for(lambda: l2.daemon.is_in_log('gossip_store: Read ')) + + +@pytest.mark.xfail(strict=True) +@unittest.skipIf(not DEVELOPER, "need dev-compact-gossip-store") +def test_gossip_store_compact_restart(node_factory, bitcoind): + l2 = setup_gossip_store_test(node_factory, bitcoind) + + # Should restart ok. + l2.restart() + wait_for(lambda: l2.daemon.is_in_log('gossip_store: Read ')) + + # Now compact store. + l2.rpc.call('dev-compact-gossip-store')