|
Ran
|
Jobs
1
|
Files
88
|
Run time
1min
|
Badge
README BADGES
|
CirrusCI
util: cleanup asyncio event loop after stopping I noticed many ResourceWarning when running regtests with PYTHONASYNCIODEBUG=1 and PYTHONDEVMODE=1, each time a daemon gets stopped the asyncio loop wouldn't get properly cleaned up: ``` (env) user@hp:~/code/electrum-fork$ python3 -m unittest tests.regtest.TestLightningAB.test_lnwatcher_waits_until_fees_go_down ***** test_lnwatcher_waits_until_fees_go_down ****** initializing alice 0.67 | W | asyncio | Executing <Task finished name='Task-1' coro=<run_offline_command() done, defined at /home/user/code/electrum-fork/./run_electrum:229> result={'msg': 'Please keep ... your wallet.', 'path': '/tmp/alice/r...efault_wallet', 'seed': 'fiction sadd...it radar desk'} created at /home/user/code/electrum-fork/electrum/util.py:1760> took 0.280 seconds /usr/lib64/python3.14/asyncio/base_events.py:758: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=True> /usr/lib64/python3.14/asyncio/base_events.py:758: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=True> /usr/lib64/python3.14/asyncio/base_events.py:758: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=True> /usr/lib64/python3.14/asyncio/base_events.py:758: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=True> /usr/lib64/python3.14/asyncio/base_events.py:758: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=True> /usr/lib64/python3.14/asyncio/base_events.py:758: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=True> funding alice /usr/lib64/python3.14/asyncio/base_events.py:758: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=True> f84277454ffa849ffcf20ce3f9af277df /usr/lib64/python3.14/asyncio/base_events.py:758: Reso... (continued)
1 of 12 new or added lines in 1 file covered. (8.33%)
1 existing line in 1 file now uncovered.22902 of 37324 relevant lines covered (61.36%)
0.61 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 11 |
63.22 |
-0.5% | electrum/util.py |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
80.24 |
-0.29% | electrum/crypto.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 5317353061220352.1 | 88 |
61.36 |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|