Skip to content

Tests: Python tests/test_lightningd.py #1126

Closed
@jsarenik

Description

@jsarenik

Issue and Steps to Reproduce

On Arch Linux when I run make check on f4447ff (where I fixed other check-related error) I get following:

...
test_payment_success_persistence (__main__.LightningDTests) ... Killing l1 in mid HTLC
lightning_channeld: Writing out status 65522: Broken pipe
ok
test_penalty_inhtlc (__main__.LightningDTests)
Test penalty transaction with an incoming HTLC ... Subdaemon lightning_onchaind hit error
Log dumped in crash.log
Fatal signal 6. Log dumped in crash.log
/home/jasan/lightning/tests/utils.py:388: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
  pass
ok
test_penalty_outhtlc (__main__.LightningDTests)
Test penalty transaction with an outgoing HTLC ... skipped 'flaky test causing CI fails too often'
test_permfail (__main__.LightningDTests) ... ERROR

======================================================================
ERROR: test_permfail (__main__.LightningDTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lightningd.py", line 1242, in test_permfail
    wait_for(lambda: l2.rpc.listpeers(l1.info['id'])['peers'][0]['channels'][0]['status'] == ['ONCHAIN:Tracking our own unilateral close', 'ONCHAIN:All outputs resolved: waiting 5 more blocks before forgetting channel'], timeout=1)
  File "tests/test_lightningd.py", line 68, in wait_for
    raise ValueError("Error waiting for {}", success)
ValueError: ('Error waiting for {}', <function LightningDTests.test_permfail.<locals>.<lambda> at 0x7fe6ed7ebae8>)

----------------------------------------------------------------------
Ran 56 tests in 3021.601s

FAILED (errors=1, skipped=2)
make: *** [Makefile:205: pytest] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions