Files
palladum-lightning/tests
Rusty Russell 72c841ef34 pytest: fix flake if rune tests are slow.
If one second has passed during testing, checkrune might pass:

```
        # default (sec)
        rune_per_default = l1.rpc.createrune(restrictions=[["per=1"]])['rune']
        assert rune_per_default == 'NrM7go6C4qzfRQDkUSv1DtRroJWSKqdjIOuvGS4TLFE9NCZwZXI9MQ=='
>       do_test_rune_per_restriction(l1, rune_per_default, 1)

tests/test_runes.py:269: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

l1 = <fixtures.LightningNode object at 0x7f7344ad2ef0>
rune_to_test = 'NrM7go6C4qzfRQDkUSv1DtRroJWSKqdjIOuvGS4TLFE9NCZwZXI9MQ=='
per_sec = 1

    def do_test_rune_per_restriction(l1, rune_to_test, per_sec):
...
        # cannot use same rune till 'per_sec' seconds
>       with pytest.raises(RpcError, match='Not permitted:') as exc_info:
E       Failed: DID NOT RAISE <class 'pyln.client.lightning.RpcError'>

tests/test_runes.py:217: Failed
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2026-01-08 22:33:19 +10:30
..
2025-11-20 16:30:50 +10:30
2025-08-11 11:06:22 +09:30
2025-08-11 11:06:22 +09:30