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-29 08:18:20 +10:30
2025-11-16 15:17:30 +10:30
2025-11-20 16:30:50 +10:30
2025-08-11 11:06:22 +09:30
2025-12-19 15:28:46 -08:00
2026-01-08 22:33:19 +10:30
2026-01-08 22:33:19 +10:30
2025-11-11 08:13:34 +10:30
2025-08-11 11:06:22 +09:30
2025-08-11 11:06:22 +09:30
2026-01-08 22:33:19 +10:30
2025-11-07 10:51:04 +10:30
2025-11-21 13:48:29 +10:30
2025-11-11 08:13:34 +10:30
2025-10-02 10:19:27 +09:30
2026-01-08 22:33:19 +10:30
2026-01-08 22:33:19 +10:30
2026-01-08 22:33:19 +10:30
2025-11-07 10:51:04 +10:30
2025-11-28 09:16:53 +10:30
2025-12-17 11:56:42 +10:30
2026-01-08 22:33:19 +10:30
2026-01-08 22:33:19 +10:30
2025-11-19 07:23:39 +10:30
2026-01-08 22:33:19 +10:30
2026-01-08 22:33:19 +10:30
2026-01-08 22:33:19 +10:30
2025-12-08 17:47:26 +10:30
2026-01-08 22:33:19 +10:30
2026-01-08 22:33:19 +10:30
2025-11-29 08:18:20 +10:30
2026-01-08 22:33:19 +10:30
2026-01-08 22:33:19 +10:30