Browse Source

pytest: add (xfail) test for store load miscount.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
pull/2938/head
Rusty Russell 6 years ago
parent
commit
12a523f7c5
  1. 13
      tests/test_gossip.py

13
tests/test_gossip.py

@ -1153,3 +1153,16 @@ def test_gossip_store_compact(node_factory, bitcoind):
# Should restart ok. # Should restart ok.
l2.restart() l2.restart()
wait_for(lambda: l2.daemon.is_in_log('gossip_store: Read ')) 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')

Loading…
Cancel
Save