|
Ran
|
Jobs
1
|
Files
86
|
Run time
1min
|
Badge
README BADGES
|
CirrusCI
regtest: make fw_fail_htlc less flaky On master fw_fail_htlc is, especially on the CI, flaky. We mine 100 blocks, then wait fixed 5 seconds, then check if bob has failed back the htlcs to alice. However if the test runs slowly (CI) 5 seconds can be too short for bob to catch up to the new 100 mined blocks. Instead we should just use the wait_until_htlcs_settled helper function which polls Alice local_unsettled_sent with 30 sec timeout, allowing bob to take a bit longer (or be faster) than 5 s. ``` .***** test_fw_fail_htlc ****** initializing alice funding alice a101c8c4cd656294cbec3a4df557e2687 initializing bob funding bob d323d572c4ed76891d3011e0a8eb4ef9a initializing carol funding carol bbf350366f99d6effe692e113d10910c2 mining 1 blocks starting daemon (PID 5559) /tmp/alice/regtest/wallets/default_wallet true starting daemon (PID 5577) /tmp/bob/regtest/wallets/default_wallet true starting daemon (PID 5595) /tmp/carol/regtest/wallets/default_wallet true alice and carol open channels with bob mining 3 blocks wait until alice sees channel open. wait until alice sees channel open.. wait until alice sees channel open... alice pays carol Daemon stopped mining 1 blocks mining 150 blocks wait until <a class=hub.com/spesmilo/electrum/commit/99ad1d44b9054f5a85c2fb45e9a9b93eb13c7851">99ad1d44b04ed0664be5cf866d79d38fc:2 is spent. ... wait until 99ad1d44b9054f5a85c2fb45e9a9b93eb13c785104ed0664be5cf866d79d38fc:2 is spent............................ mining 1 blocks mining 100 blocks alice htlc was not failed FDaemon stopped ```
24504 of 37726 relevant lines covered (64.95%)
0.65 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
62.36 |
-0.05% | electrum/lnpeer.py |
| 1 |
88.1 |
-0.05% | electrum/transaction.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 6070453044772864.1 | 86 |
64.95 |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|